Gets or sets the size that is the upper limit that
System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size) can specify.
Syntax
Visual Basic (Declaration) | |
---|
<SRDescriptionAttribute("Specifies the maximum size of the control.")>
<SRCategoryAttribute("Layout")>
<AmbientValueAttribute()>
Public Overridable Property MaximumSize As Size |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Medical3DControl
Dim value As Size
instance.MaximumSize = value
value = instance.MaximumSize |
C# | |
---|
[SRDescriptionAttribute("Specifies the maximum size of the control.")]
[SRCategoryAttribute("Layout")]
[AmbientValueAttribute()]
public virtual Size MaximumSize {get; set;} |
C++/CLI | |
---|
[SRDescriptionAttribute("Specifies the maximum size of the control.")]
[SRCategoryAttribute("Layout")]
[AmbientValueAttribute()]
public:
virtual property Size MaximumSize {
Size get();
void set ( Size value);
} |
Property Value
An ordered pair of type
System.Drawing.Size representing the width and height of a rectangle.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also