Source::ColumnToVisiblePosition Method (Int32, Int32)

 

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.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
int ColumnToVisiblePosition(
	int line,
	int col
)

Parameters

line
Type: System::Int32

The line of source to look at.

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.

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

This method is the opposite of the VisiblePositionToColumn method.

Return to top
Show: