Source::VisiblePositionToColumn Method (Int32, Int32)
Visual Studio 2015
Gets the character offset on the given line corresponding to the specified screen column position.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- line
-
Type:
System::Int32
The number of the line to examine.
- visiblePosition
-
Type:
System::Int32
The screen column to convert.
Return Value
Type: System::Int32The character offset into the line. If the visible position is off the end of the line, then return the length of the line.
This method takes into account tab size and tab stops. This method is the opposite of the ColumnToVisiblePosition method.
Show: