次の方法で共有


IVsStatusbar.SetXYWH(Object, Object, Object, Object) Method

Definition

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

public:
 int SetXYWH(System::Object ^ % pvX, System::Object ^ % pvY, System::Object ^ % pvW, System::Object ^ % pvH);
int SetXYWH(winrt::Windows::Foundation::IInspectable const & & pvX, winrt::Windows::Foundation::IInspectable const & & pvY, winrt::Windows::Foundation::IInspectable const & & pvW, winrt::Windows::Foundation::IInspectable const & & pvH);
public int SetXYWH (ref object pvX, ref object pvY, ref object pvW, ref object pvH);
abstract member SetXYWH : obj * obj * obj * obj -> int
Public Function SetXYWH (ByRef pvX As Object, ByRef pvY As Object, ByRef pvW As Object, ByRef pvH As Object) As Integer

Parameters

pvX
Object

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

pvY
Object

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

pvW
Object

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

pvH
Object

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

Returns

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 null to ignore the parameters. For each parameter, the VARIANT must be VT_I2, VT_I4, VT_R4, or VT_R8.

Applies to