Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TextViewCreatedEventArgs.cs « Editor « TextUI « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 21527c33121690a6a28dc83399bff223e5a8ce42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text.Editor
{
    using System;

    /// <summary>
    /// Provides information for newly created <see cref="ITextView"/>.
    /// </summary>
    public class TextViewCreatedEventArgs : EventArgs
    {
        /// <summary>
        /// The newly created <see cref="ITextView"/>.
        /// </summary>
        public ITextView TextView { get; private set; }

        /// <summary>
        /// Constructs a <see cref="TextViewCreatedEventArgs"/>.
        /// </summary>
        /// <param name="textView">The <see cref="ITextView"/> that was created.</param>
        public TextViewCreatedEventArgs(ITextView textView)
        {
            if (textView == null)
            {
                throw new ArgumentNullException("textView");
            }
            TextView = textView;
        }
    }
}