IVsTextView.CenterLines 方法
指定檢視的置中的文字行的位置。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function CenterLines ( _
iTopLine As Integer, _
iCount As Integer _
) As Integer
int CenterLines(
int iTopLine,
int iCount
)
int CenterLines(
[InAttribute] int iTopLine,
[InAttribute] int iCount
)
abstract CenterLines :
iTopLine:int *
iCount:int -> int
function CenterLines(
iTopLine : int,
iCount : int
) : int
參數
iTopLine
類型:Int32[in]要放置檢視的置中的第一行。
iCount
類型:Int32[in]要放置檢視的中央線的總數。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextView::CenterLines(
[in] long iTopLine,
[in] long iCount
);
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。