VsTextViewClass.CenterColumns(Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Places the specified column of text in the center of the view.
public:
virtual int CenterColumns(int iLine, int iLeftCol, int iColCount) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::CenterColumns;
public:
virtual int CenterColumns(int iLine, int iLeftCol, int iColCount);
public:
virtual int CenterColumns(int iLine, int iLeftCol, int iColCount) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::CenterColumns;
virtual int CenterColumns(int iLine, int iLeftCol, int iColCount);
public virtual int CenterColumns (int iLine, int iLeftCol, int iColCount);
abstract member CenterColumns : int * int * int -> int
override this.CenterColumns : int * int * int -> int
Public Overridable Function CenterColumns (iLine As Integer, iLeftCol As Integer, iColCount As Integer) As Integer
Parameters
- iLine
- Int32
[in] Integer containing the first line to center.
- iLeftCol
- Int32
[in] Integer containing the index of the starting column to center. Viewcol coordinates may include virtual space.
- iColCount
- Int32
[in] Integer containing the total number of columns to center within the line.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.