IFormattedLine::SetSnapshot Method (ITextSnapshot^, ITextSnapshot^)
Visual Studio 2015
Sets the ITextSnapshot objects upon which this formatted text line is based.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Parameters
- visualSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The new snapshot for the line in the view model's visual buffer.
- editSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The new snapshot for the line in the view model's edit buffer.
| Exception | Condition |
|---|---|
| ObjectDisposedException | This IWpfTextViewLine has been disposed. |
The length of this text line is not allowed to change as a result of changing the snapshot.
Show: