Source.ColumnToVisiblePosition Method

Gets the screen column position corresponding to the specified character offset, taking into account tab size.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'宣言
Public Function ColumnToVisiblePosition ( _
    line As Integer, _
    col As Integer _
) As Integer
'使用
Dim instance As Source
Dim line As Integer
Dim col As Integer
Dim returnValue As Integer

returnValue = instance.ColumnToVisiblePosition(line, _
    col)
public int ColumnToVisiblePosition(
    int line,
    int col
)
public:
int ColumnToVisiblePosition(
    int line, 
    int col
)
public function ColumnToVisiblePosition(
    line : int, 
    col : int
) : int

Parameters

  • col
    Type: System.Int32

    The offset into the line of source.

Return Value

Type: System.Int32

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.

Permissions

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace