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)

Syntax

C#
public void ApplySize (
		DisplaySize width,
		DisplaySize height
)

Parameters

width

Specifies the width of the control add-in.

height

Specifies the height of the control add-in.

Remarks

  Copy Code
protected override void OnInitialize()
		{
			base.OnInitialize();

			this.ApplySize(DisplaySize.Default, new DisplaySize(29));
	}

Thread Safety

Any public static members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also