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)

ITextSnapshot TextSnapshot { get; }

Property Value

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

This snapshot is identical to the CurrentSnapshot of TextBuffer, except when handling a Changed event on that buffer.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft