Compartilhar via


IVsTextView.CenterColumns Method

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaração
Function CenterColumns ( _
    iLine As Integer, _
    iLeftCol As Integer, _
    iColCount As Integer _
) As Integer
int CenterColumns(
    int iLine,
    int iLeftCol,
    int iColCount
)
int CenterColumns(
    [InAttribute] int iLine, 
    [InAttribute] int iLeftCol, 
    [InAttribute] int iColCount
)
abstract CenterColumns : 
        iLine:int * 
        iLeftCol:int * 
        iColCount:int -> int 
function CenterColumns(
    iLine : int, 
    iLeftCol : int, 
    iColCount : int
) : int

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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsTextView Interface

Microsoft.VisualStudio.TextManager.Interop Namespace