Gets or sets the space between the edge of a cell and its content.
<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.
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