Compartilhar via


ITextView.VisualSnapshot Property

Gets the ITextSnapshot of the visual buffer that is being rendered.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
ReadOnly Property VisualSnapshot As ITextSnapshot
ITextSnapshot VisualSnapshot { get; }
property ITextSnapshot^ VisualSnapshot {
    ITextSnapshot^ get ();
}
abstract VisualSnapshot : ITextSnapshot with get
function get VisualSnapshot () : ITextSnapshot

Property Value

Type: Microsoft.VisualStudio.Text.ITextSnapshot
The text snapshot.

Remarks

This snapshot should not be used in any method that requires a position in the text buffer position, since those positions refer to TextSnapshot.

.NET Framework Security

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace