VsTextViewClass::CenterColumns Method (Int32, Int32, Int32)
Visual Studio 2015
Places the specified column of text in the center of the view.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iLine
-
Type:
System::Int32
[in] Integer containing the first line to center.
- iLeftCol
-
Type:
System::Int32
[in] Integer containing the index of the starting column to center. Viewcol coordinates may include virtual space.
- iColCount
-
Type:
System::Int32
[in] Integer containing the total number of columns to center within the line.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: