GrapeCity.Win.MultiRow Namespace > Cell Class : MaximumSize Property |
<DefaultValueAttribute()> <RefreshPropertiesAttribute(RefreshProperties.Repaint)> <SRCategoryAttribute("Layout")> <SRDescriptionAttribute("Indicates the size that is the upper limit when resizing the Cell.")> Public Property MaximumSize As Size
[DefaultValue()] [RefreshProperties(RefreshProperties.Repaint)] [SRCategory("Layout")] [SRDescription("Indicates the size that is the upper limit when resizing the Cell.")] public Size MaximumSize {get; set;}
Exception | Description |
---|---|
System.InvalidOperationException | Setting this value when the owner Template has been added to GcMultiRow. |
The value is Size.Empty, which means the maximum size does not take effect on Size.
Setting this property controls the upper limit of the UI resizing.
You can set the MinimumSize's width or height with the MaximumSize's width or height individually. For example, you can set the MinimumSize's width and the MaximumSize's width to limit only the horizontal direction.
void setFirstCellMaxSizeAndMinSize_Click(object sender, EventArgs e) { Cell cell = this.gcMultiRow1.Template.Row[0]; cell.MaximumSize = new Size(125, 0); cell.MinimumSize = new Size(60, 0); gcMultiRow1.Template = gcMultiRow1.Template; FillValue(); }
Private Sub setFirstCellMaxSizeAndMinSize_Click(ByVal sender As Object, ByVal e As EventArgs) Handles makeFirstCellMaxSizeAndMinSize.Click Dim cell As Cell = Me.gcMultiRow1.Template.Row(0) cell.MaximumSize = New Size(125, 0) cell.MinimumSize = New Size(60, 0) gcMultiRow1.Template = gcMultiRow1.Template FillValue() End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2