Partager via


Source.VisiblePositionToColumn(Int32, Int32) Method

Definition

Convert a user visible position back to char position in the buffer. This is the opposite of ColumnToVisiblePosition. In this case the visible position was off the end of the line, it just returns the column position at the end of the line.

public:
 int VisiblePositionToColumn(int line, int visiblePosition);
public:
 int VisiblePositionToColumn(int line, int visiblePosition);
int VisiblePositionToColumn(int line, int visiblePosition);
public int VisiblePositionToColumn (int line, int visiblePosition);
member this.VisiblePositionToColumn : int * int -> int
Public Function VisiblePositionToColumn (line As Integer, visiblePosition As Integer) As Integer

Parameters

line
Int32

The number of the line to examine.

visiblePosition
Int32

The screen column to convert.

Returns

The character offset into the line. If the visible position is off the end of the line, then return the length of the line.

Remarks

This method takes into account tab size and tab stops. This method is the opposite of the ColumnToVisiblePosition method.

Applies to