Source.ColumnToVisiblePosition Method
Gets the screen column position corresponding to the specified character offset, taking into account tab size.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Function ColumnToVisiblePosition ( _
line As Integer, _
col As Integer _
) As Integer
public int ColumnToVisiblePosition(
int line,
int col
)
public:
int ColumnToVisiblePosition(
int line,
int col
)
member ColumnToVisiblePosition :
line:int *
col:int -> int
public function ColumnToVisiblePosition(
line : int,
col : int
) : int
Parameters
line
Type: Int32The line of source to look at.
col
Type: Int32The offset into the line of source.
Return Value
Type: 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.