共用方式為


TextPosition.Implicit Operator

Definition

Overloads

Implicit(TextPosition to VersionedTextDocumentPositionContract)

Implicitly converts the TextPosition to VersionedTextDocumentPositionContract.

Implicit(TextPosition to Int32)

Implicitly converts the snapshot position to an integer equal to the position of the snapshot position in the snapshot.

Implicit(TextPosition to VersionedTextDocumentPositionContract)

public static implicit operator Microsoft.VisualStudio.RpcContracts.Utilities.VersionedTextDocumentPositionContract (Microsoft.VisualStudio.Extensibility.Editor.TextPosition position);
static member op_Implicit : Microsoft.VisualStudio.Extensibility.Editor.TextPosition -> Microsoft.VisualStudio.RpcContracts.Utilities.VersionedTextDocumentPositionContract
Public Shared Widening Operator CType (position As TextPosition) As VersionedTextDocumentPositionContract

Parameters

position
TextPosition

Returns

Applies to

Implicit(TextPosition to Int32)

Implicitly converts the snapshot position to an integer equal to the position of the snapshot position in the snapshot.

public static implicit operator int (Microsoft.VisualStudio.Extensibility.Editor.TextPosition position);
static member op_Implicit : Microsoft.VisualStudio.Extensibility.Editor.TextPosition -> int
Public Shared Widening Operator CType (position As TextPosition) As Integer

Parameters

position
TextPosition

Returns

Applies to