Export (0) Print
Expand All

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)

int SetXYWH (
	[InAttribute] ref Object pvX,
	[InAttribute] ref Object pvY,
	[InAttribute] ref Object pvW,
	[InAttribute] ref Object pvH
)
int SetXYWH (
	/** @attribute InAttribute() */ /** @ref */ Object pvX, 
	/** @attribute InAttribute() */ /** @ref */ Object pvY, 
	/** @attribute InAttribute() */ /** @ref */ Object pvW, 
	/** @attribute InAttribute() */ /** @ref */ Object pvH
)
JScript does not support passing value-type arguments by reference.

Parameters

pvX

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

pvY

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

pvW

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

pvH

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

Return Value

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

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 a 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.

Community Additions

ADD
Show:
© 2014 Microsoft