GrapeCity MultiRow Windows Forms Documentation
Size Property (Cell)


Gets or sets the height and width of the cell.
Syntax
<LocalizableAttribute(True)>
<SRCategoryAttribute("Layout")>
<SRDescriptionAttribute("Indicates the size of the Cell in pixels.")>
Public Property Size As Size
Dim instance As Cell
Dim value As Size
 
instance.Size = value
 
value = instance.Size
[Localizable(true)]
[SRCategory("Layout")]
[SRDescription("Indicates the size of the Cell in pixels.")]
public Size Size {get; set;}

Property Value

A System.Drawing.Size value that represents the height and width of the cell in pixels. The default value is Size(80,21).
Exceptions
ExceptionDescription
System.InvalidOperationExceptionSetting this value when the owner Template has been added to GcMultiRow.
Remarks

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.

Requirements

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

See Also

Reference

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.