GrapeCity MultiRow Windows Forms Documentation
Margin Property


Gets or sets the space between cells.
Syntax
<SRDescriptionAttribute("Indicates the space between the Cells.")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<SRCategoryAttribute("Layout")>
<DefaultValueAttribute()>
Public Property Margin As Padding
Dim instance As CellStyle
Dim value As Padding
 
instance.Margin = value
 
value = instance.Margin
[SRDescription("Indicates the space between the Cells.")]
[RefreshProperties(RefreshProperties.Repaint)]
[SRCategory("Layout")]
[DefaultValue()]
public Padding Margin {get; set;}

Property Value

A System.Windows.Forms.Padding value that represents the space between cells. The default value is a System.Windows.Forms.Padding object that has a value of -1 for its Left, Top, Right, and Bottom properties.
Exceptions
ExceptionDescription
System.ArgumentExceptionThe top, bottom, left, and right values are less than 0, and they are not -1.
Remarks
If the top, bottom, left, and right values are not all less than 0, the property values that are less than 0, are adjusted to 0.
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

CellStyle Class
CellStyle Members

 

 


Copyright © GrapeCity, inc. All rights reserved.