Compartir a través de


IVsSplitter.GetPosition Method

Gets the position of the splitter relative to its parent.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsSplitter Interface

Microsoft.VisualStudio.TextManager.Interop Namespace