共用方式為


IVsCompletionSet.GetInitialExtent 方法

決定編輯器中顯示完成的設定] 清單中的位置。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function GetInitialExtent ( _
    <OutAttribute> ByRef piLine As Integer, _
    <OutAttribute> ByRef piStartCol As Integer, _
    <OutAttribute> ByRef piEndCol As Integer _
) As Integer
int GetInitialExtent(
    out int piLine,
    out int piStartCol,
    out int piEndCol
)
int GetInitialExtent(
    [OutAttribute] int% piLine, 
    [OutAttribute] int% piStartCol, 
    [OutAttribute] int% piEndCol
)
abstract GetInitialExtent : 
        piLine:int byref * 
        piStartCol:int byref * 
        piEndCol:int byref -> int
function GetInitialExtent(
    piLine : int, 
    piStartCol : int, 
    piEndCol : int
) : int

參數

  • piLine
    類型:Int32%

    [] out傳回的行號不會遮住的字元。

  • piStartCol
    類型:Int32%

    [] out傳回資料行的數目應該不會變模糊的第一個字元。

  • piEndCol
    類型:Int32%

    [] out應該不會變模糊的範圍中傳回的最後一個字元。 這必須是在同一行piLine。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsCompletionSet::GetInitialExtent(
   [out] long *piLine,
   [out] long *piStartCol,
   [out] long *piEndCol
);

使用這個方法來告訴檢視放置 [完成] 方塊中的位置。 藉由指定的值piLine, piCol和piLen,您要表示的檢視不應該混淆與 [完成] 方塊中的文字範圍。 如果值為piLen參數設定為零,然後錨點座標 (piCol, piLine) 必須提供。

.NET Framework 安全性

請參閱

參考

IVsCompletionSet 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間