IVsTextView.CenterColumns(Int32, Int32, Int32) Method

Definition

Places the specified column of text in the center of the view.

C++/CX
public:
 int CenterColumns(int iLine, int iLeftCol, int iColCount);

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.

Remarks

COM Signature

From textmgr.idl:

cpp#
HRESULT IVsTextView::CenterColumns(  
   [in] long iLine,   
   [in] ViewCol iLeftCol,   
   [in] long iColCount  
);  

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022