IVsSplitPane.GetPosition(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取窗格的位置。
public:
int GetPosition([Runtime::InteropServices::Out] int % piLeft, [Runtime::InteropServices::Out] int % piTop, [Runtime::InteropServices::Out] int % piRight, [Runtime::InteropServices::Out] int % piBottom);
int GetPosition([Runtime::InteropServices::Out] int & piLeft, [Runtime::InteropServices::Out] int & piTop, [Runtime::InteropServices::Out] int & piRight, [Runtime::InteropServices::Out] int & piBottom);
public int GetPosition (out int piLeft, out int piTop, out int piRight, out int piBottom);
abstract member GetPosition : int * int * int * int -> int
Public Function GetPosition (ByRef piLeft As Integer, ByRef piTop As Integer, ByRef piRight As Integer, ByRef piBottom As Integer) As Integer
参数
- piLeft
- Int32
弄窗格的左侧。
- piTop
- Int32
弄窗格顶部。
- piRight
- Int32
弄窗格的右侧。
- piBottom
- Int32
弄窗格的底部。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsSplitPane::GetPosition(
[out] long *piLeft,
[out] long *piTop,
[out] long *piRight,
[out] long *piBottom
);