IFormattedLine::SetSnapshot Method (ITextSnapshot^, ITextSnapshot^)

 

Sets the ITextSnapshot objects upon which this formatted text line is based.

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

void SetSnapshot(
	ITextSnapshot^ visualSnapshot,
	ITextSnapshot^ editSnapshot
)

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.

Return to top
Show: