IVsTextView.CenterColumns 方法
將指定的資料行的文字放在中心的檢視中。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
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
參數
iLine
類型:Int32[in]包含整數的第一行来置中。
iLeftCol
類型:Int32[in]整數,包含起始的資料行索引来置中。 Viewcol 座標可能包括虛擬空間。
iColCount
類型:Int32[in]整數,包含的資料行的總數為置中的行內。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextView::CenterColumns(
[in] long iLine,
[in] ViewCol iLeftCol,
[in] long iColCount
);
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。