WinFormsControlAddInBase.ApplySize Method
This method defines the size of the control add-in specified with the parameters width and height. Use this in OnInitialize to adjust the size as the page opens.
Namespace: Microsoft.Dynamics.Framework.UI.Extensibility.WinForms
Assembly: Microsoft.Dynamics.Framework.UI.Extensibility (in Microsoft.Dynamics.Framework.UI.Extensibility.dll)
Usage
Syntax
'Declaration
Public Sub ApplySize ( _
width As DisplaySize, _
height As DisplaySize _
)
public void ApplySize (
DisplaySize width,
DisplaySize height
)
public:
void ApplySize (
DisplaySize^ width,
DisplaySize^ height
)
public void ApplySize (
DisplaySize width,
DisplaySize height
)
public function ApplySize (
width : DisplaySize,
height : DisplaySize
)
Parameters
- width
Specifies the width of the control add-in.
- height
Specifies the height of the control add-in.
Remarks
protected override void OnInitialize()
{
base.OnInitialize();
this.ApplySize(DisplaySize.Default, new DisplaySize(29));
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
WinFormsControlAddInBase Class
WinFormsControlAddInBase Members
Microsoft.Dynamics.Framework.UI.Extensibility.WinForms Namespace