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

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor/Text/Def/TextData/Document/TextDocumentEventArgs.cs')
-rw-r--r--src/Editor/Text/Def/TextData/Document/TextDocumentEventArgs.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Editor/Text/Def/TextData/Document/TextDocumentEventArgs.cs b/src/Editor/Text/Def/TextData/Document/TextDocumentEventArgs.cs
new file mode 100644
index 0000000..5affc72
--- /dev/null
+++ b/src/Editor/Text/Def/TextData/Document/TextDocumentEventArgs.cs
@@ -0,0 +1,40 @@
+//
+// 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
+{
+ using System;
+
+ /// <summary>
+ /// Provides information for events when an <see cref="ITextDocument"/> has been created or disposed.
+ /// </summary>
+ public class TextDocumentEventArgs : EventArgs
+ {
+ #region Private Members
+
+ ITextDocument _textDocument;
+
+ #endregion
+
+ /// <summary>
+ /// Initializes a new instance of a <see cref="TextDocumentEventArgs"/>.
+ /// </summary>
+ /// <param name="textDocument">The <see cref="ITextDocument"/> that was created or disposed.</param>
+ public TextDocumentEventArgs(ITextDocument textDocument)
+ {
+ _textDocument = textDocument;
+ }
+
+ /// <summary>
+ /// Gets the <see cref="ITextDocument"/> that was created or disposed.
+ /// </summary>
+ public ITextDocument TextDocument
+ {
+ get
+ {
+ return _textDocument;
+ }
+ }
+ }
+}