Freigeben über


Source.ColumnToVisiblePosition(Int32, Int32) Method

Definition

Return the column position that the user will see given the current tab size setting. This is the opposite of VisiblePositionToColumn

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

Parameters

line
Int32

The line of source to look at.

col
Int32

The offset into the line of source.

Returns

The screen column position that corresponds to the specified col parameter.

Remarks

This method takes into account the current tab size setting and corresponding tab stops.

This method is the opposite of the VisiblePositionToColumn method.

Applies to