GrapeCity MultiRow Windows Forms Documentation
Padding Property (CellStyle)


Gets or sets the space between the edge of a cell and its content.
Syntax
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<SRDescriptionAttribute("Indicates the space between the edge of a Cell and its content.")>
<DefaultValueAttribute()>
<SRCategoryAttribute("Layout")>
Public Property Padding As Padding
Dim instance As CellStyle
Dim value As Padding
 
instance.Padding = value
 
value = instance.Padding
[RefreshProperties(RefreshProperties.Repaint)]
[SRDescription("Indicates the space between the edge of a Cell and its content.")]
[DefaultValue()]
[SRCategory("Layout")]
public Padding Padding {get; set;}

Property Value

A System.Windows.Forms.Padding value that represents the space between the edge of a cell and its content. 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.ArgumentException The top, bottom, left, and right values are less then 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.