IVsButtonBar.GetSize(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the size of the button bar.
public:
int GetSize([Runtime::InteropServices::Out] int % piWidth, int % piHeight);
int GetSize([Runtime::InteropServices::Out] int & piWidth, int & piHeight);
public int GetSize (out int piWidth, ref int piHeight);
abstract member GetSize : int * int -> int
Public Function GetSize (ByRef piWidth As Integer, ByRef piHeight As Integer) As Integer
Parameters
- piWidth
- Int32
[out] The width of the button bar
- piHeight
- Int32
[ref] The height of the button bar
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsButtonBar::GetSize(
[out] long *piWidth, long *piHeight
);
This method is called by the parent; clients need not call this unless writing another owner for the button bar.The width is a function of height.