IFormattedLine.SetSnapshot(ITextSnapshot, ITextSnapshot) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.