Diagram.MinimumSize Property
Gets the minimum height and width of the diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
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; }
- 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.