IVsStatusbar::SetXYWH Method (Object^, Object^, Object^, Object^)

 

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] Object^% pvX,
	[InAttribute] Object^% pvY,
	[InAttribute] Object^% pvW,
	[InAttribute] Object^% pvH
)

Parameters

pvX
Type: System::Object^

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

pvY
Type: System::Object^

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

pvW
Type: System::Object^

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

pvH
Type: System::Object^

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

Return Value

Type: System::Int32

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

From vsshell.idl:

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

For all parameters, pass in null to ignore the parameters. For each parameter, the VARIANT must be VT_I2, VT_I4, VT_R4, or VT_R8.

Return to top
Show: