blob: 25c532eb576d7fcb4e7295690331c8fafce39f04 (
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
{
using System;
/// <summary>
/// Provides information about a newly created <see cref="ITextBuffer"/>.
/// </summary>
public class TextBufferCreatedEventArgs : EventArgs
{
/// <summary>
/// The newly created <see cref="ITextBuffer"/>.
/// </summary>
public ITextBuffer TextBuffer { get; private set; }
/// <summary>
/// Constructs a <see cref="TextBufferCreatedEventArgs"/>.
/// </summary>
/// <param name="textBuffer">The <see cref="ITextBuffer"/> which was created.</param>
public TextBufferCreatedEventArgs(ITextBuffer textBuffer)
{
if (textBuffer == null)
{
throw new ArgumentNullException("textBuffer");
}
TextBuffer = textBuffer;
}
}
}
|