IVsMenuEditor.GetHeight Method
Can be used by the site to change the size of the host when the user wants to remove the menu. This allows the site an easy way to determine how much to decrease the size of the host.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function GetHeight ( _
<OutAttribute> ByRef piHeight As Integer _
) As Integer
'Uso
Dim instance As IVsMenuEditor
Dim piHeight As Integer
Dim returnValue As Integer
returnValue = instance.GetHeight(piHeight)
int GetHeight(
out int piHeight
)
int GetHeight(
[OutAttribute] int% piHeight
)
abstract GetHeight :
piHeight:int byref -> int
function GetHeight(
piHeight : int
) : int
Parameters
- piHeight
Type: System.Int32%
[out]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMenuEditor::GetHeight(
[out]INT *piHeight
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.