共用方式為


IVsTextView.CenterLines(Int32, Int32) Method

Definition

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

public:
 int CenterLines(int iTopLine, int iCount);
public:
 int CenterLines(int iTopLine, int iCount);
int CenterLines(int iTopLine, int iCount);
public int CenterLines (int iTopLine, int iCount);
abstract member CenterLines : int * int -> int
Public Function CenterLines (iTopLine As Integer, iCount As Integer) As Integer

Parameters

iTopLine
Int32

[in] First line to place in the center of the view.

iCount
Int32

[in] Total number of lines to place in the center of the view.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::CenterLines(  
   [in] long iTopLine,   
   [in] long iCount  
);  

Applies to