GrapeCity.Win.MultiRow Namespace > Cell Class : Size Property |
<LocalizableAttribute(True)> <SRCategoryAttribute("Layout")> <SRDescriptionAttribute("Indicates the size of the Cell in pixels.")> Public Property Size As Size
[Localizable(true)] [SRCategory("Layout")] [SRDescription("Indicates the size of the Cell in pixels.")] public Size Size {get; set;}
Exception | Description |
---|---|
System.InvalidOperationException | Setting this value when the owner Template has been added to GcMultiRow. |
You can set the cell's MaximumSize and MinimumSize to control the UI resizing range. When you want to expand or reduce the cell's size, the MaximumSize controls the upper limit and the MinimumSize controls the lower limit.
Because the System.Drawing.Size structure is a value type (Structure in Visual Basic, struct in Visual C#), it is returned by value, which means that accessing the property returns a copy of the size of the cell. So, adjusting the Width or Height property of the System.Drawing.Size returned from this property does not affect the Width or Height of the cell.
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