共用方式為


TextLineCollection.GetPosition(LinePosition) Method

Definition

Convert a LinePosition to a position.

public:
 int GetPosition(Microsoft::CodeAnalysis::Text::LinePosition position);
public int GetPosition (Microsoft.CodeAnalysis.Text.LinePosition position);
member this.GetPosition : Microsoft.CodeAnalysis.Text.LinePosition -> int
Public Function GetPosition (position As LinePosition) As Integer

Parameters

position
LinePosition

Returns

Applies to