次の方法で共有


OffsetRange.ToTextRange(ITextDocumentSnapshot) Method

Definition

Allows conversion to a TextRange.

public Microsoft.VisualStudio.Extensibility.Editor.TextRange ToTextRange (Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot textDocumentSnapshot);
member this.ToTextRange : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot -> Microsoft.VisualStudio.Extensibility.Editor.TextRange
Public Function ToTextRange (textDocumentSnapshot As ITextDocumentSnapshot) As TextRange

Parameters

textDocumentSnapshot
ITextDocumentSnapshot

The text document version on which to base the range.

Returns

The range converted to a TextRange.

Exceptions

textDocumentSnapshot is null.

Applies to