次の方法で共有


IFormattedLine.SetSnapshot Method

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)

Syntax

'宣言
Sub SetSnapshot ( _
    visualSnapshot As ITextSnapshot, _
    editSnapshot As ITextSnapshot _
)
void SetSnapshot(
    ITextSnapshot visualSnapshot,
    ITextSnapshot editSnapshot
)
void SetSnapshot(
    ITextSnapshot^ visualSnapshot, 
    ITextSnapshot^ editSnapshot
)
abstract SetSnapshot : 
        visualSnapshot:ITextSnapshot * 
        editSnapshot:ITextSnapshot -> unit 
function SetSnapshot(
    visualSnapshot : ITextSnapshot, 
    editSnapshot : ITextSnapshot
)

Parameters

Exceptions

Exception Condition
ObjectDisposedException

This IWpfTextViewLine has been disposed.

Remarks

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

.NET Framework Security

See Also

Reference

IFormattedLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace