IVsSplitPane.GetPosition 方法

获取窗格的位置。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetPosition ( _
    <OutAttribute> ByRef piLeft As Integer, _
    <OutAttribute> ByRef piTop As Integer, _
    <OutAttribute> ByRef piRight As Integer, _
    <OutAttribute> ByRef piBottom As Integer _
) As Integer
int GetPosition(
    out int piLeft,
    out int piTop,
    out int piRight,
    out int piBottom
)
int GetPosition(
    [OutAttribute] int% piLeft, 
    [OutAttribute] int% piTop, 
    [OutAttribute] int% piRight, 
    [OutAttribute] int% piBottom
)
abstract GetPosition : 
        piLeft:int byref * 
        piTop:int byref * 
        piRight:int byref * 
        piBottom:int byref -> int
function GetPosition(
    piLeft : int, 
    piTop : int, 
    piRight : int, 
    piBottom : int
) : int

参数

  • piLeft
    类型:Int32%

    [out] 窗格的左侧。

  • piTop
    类型:Int32%

    [out] 窗格的顶部。

  • piRight
    类型:Int32%

    [out] 窗格的右侧。

  • piBottom
    类型:Int32%

    [out] 窗格底部。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsSplitPane::GetPosition(
   [out] long *piLeft,
   [out] long *piTop,
   [out] long *piRight,
   [out] long *piBottom
);

.NET Framework 安全性

请参阅

参考

IVsSplitPane 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间