다음을 통해 공유


IFormattedLine.SetSnapshot(ITextSnapshot, ITextSnapshot) Method

Definition

Sets the ITextSnapshots upon which this formatted text line is based.

public:
 void SetSnapshot(Microsoft::VisualStudio::Text::ITextSnapshot ^ visualSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ editSnapshot);
public:
 void SetSnapshot(Microsoft::VisualStudio::Text::ITextSnapshot ^ visualSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ editSnapshot);
void SetSnapshot(Microsoft::VisualStudio::Text::ITextSnapshot const & visualSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & editSnapshot);
public void SetSnapshot (Microsoft.VisualStudio.Text.ITextSnapshot visualSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot editSnapshot);
abstract member SetSnapshot : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot -> unit
Public Sub SetSnapshot (visualSnapshot As ITextSnapshot, editSnapshot As ITextSnapshot)

Parameters

visualSnapshot
ITextSnapshot

the new snapshot for the line in the view model's visual buffer.

editSnapshot
ITextSnapshot

the new snapshot for the line in the view model's edit buffer.

Exceptions

This IWpfTextViewLine has been disposed.

Remarks

The length of this text line is not allowed to change as a result of changing the snapshot.

Applies to