Export (0) Print
Expand All
Expand Minimize

Diagram.MinimumSize Property

Gets the minimum height and width of the diagram.

Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in microsoft.visualstudio.modeling.diagrams.dll)

public override SizeD MinimumSize { get; }
/** @property */
public SizeD get_MinimumSize ()

public override function get MinimumSize () : SizeD

Property Value

The minimum height and width of the diagram.

private void ResetFormSize()
{
Size buttonSize = _buttons.Size;
Size largestForm = GetLargestBounds();
int width = (buttonSize.Width > largestForm.Width) ? buttonSize.Width : largestForm.Width;
_groupBox.Size = new Size(width, largestForm.Height);
this.MinimumSize = new Size(width, largestForm.Height + buttonSize.Height);
this.Size = this.MinimumSize;
}

Community Additions

ADD
Show:
© 2014 Microsoft