Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the ITextSnapshot of the text that is currently rendered in the view.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
ReadOnly Property TextSnapshot As ITextSnapshot
ITextSnapshot TextSnapshot { get; }
property ITextSnapshot^ TextSnapshot {
ITextSnapshot^ get ();
}
abstract TextSnapshot : ITextSnapshot
function get TextSnapshot () : ITextSnapshot
Property Value
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The text snapshot.
Remarks
This snapshot is identical to the CurrentSnapshot of TextBuffer, except when handling a Changed event on that buffer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.