ITextView.TextSnapshot Property

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

声明
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

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace