Compartilhar via


IVsStatusbar.SetXYWH Method

Displays the (x,y) position and the width and height of the current graphics box in the editor information area of the status bar.

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

Syntax

'Declaration
Function SetXYWH ( _
    ByRef pvX As Object, _
    ByRef pvY As Object, _
    ByRef pvW As Object, _
    ByRef pvH As Object _
) As Integer
int SetXYWH(
    ref Object pvX,
    ref Object pvY,
    ref Object pvW,
    ref Object pvH
)
int SetXYWH(
    [InAttribute] Object^% pvX, 
    [InAttribute] Object^% pvY, 
    [InAttribute] Object^% pvW, 
    [InAttribute] Object^% pvH
)
abstract SetXYWH : 
        pvX:Object byref * 
        pvY:Object byref * 
        pvW:Object byref * 
        pvH:Object byref -> int
function SetXYWH(
    pvX : Object, 
    pvY : Object, 
    pvW : Object, 
    pvH : Object
) : int

Parameters

  • pvX
    Type: Object%

    [in] Pointer to the x ordinate location of the upper-left corner of the current graphic.

  • pvY
    Type: Object%

    [in] Pointer to the y ordinate location of the upper-left corner of the current graphic.

  • pvW
    Type: Object%

    [in] Pointer to the width of the current graphic.

  • pvH
    Type: Object%

    [in] Pointer to the height of the current graphic.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsStatusbar::SetXYWH(
   [in]VARIANT *pvX,
   [in]VARIANT *pvY,
   [in]VARIANT *pvW,
   [in]VARIANT *pvH
);

For all parameters, pass in nulla null reference (Nothing in Visual Basic) to ignore the parameters. For each parameter, the VARIANT must be VT_I2, VT_I4, VT_R4, or VT_R8.

.NET Framework Security

See Also

Reference

IVsStatusbar Interface

Microsoft.VisualStudio.Shell.Interop Namespace