Gets or sets the spacing between cell content and its edges.
[Visual Basic]
Public Property Padding As Margins
[C#]
public Margins Padding {get;set;}
[Delphi]
public property Padding: Margins read get_Padding write set_Padding;
Example
The following code sets the spacing between the cell content and its edges to 2 hundreds of an inch:
Me.C1TrueDBGrid1.Splits(0).Style.Padding.Bottom = 2
Me.C1TrueDBGrid1.Splits(0).Style.Padding.Left = 2
Me.C1TrueDBGrid1.Splits(0).Style.Padding.Right = 2
Me.C1TrueDBGrid1.Splits(0).Style.Padding.Top = 2
· C#
this.c1TrueDBGrid1.Splits[0].Style.Padding.Bottom = 2;
this.c1TrueDBGrid1.Splits[0].Style.Padding.Left = 2;
this.c1TrueDBGrid1.Splits[0].Style.Padding.Right = 2;
this.c1TrueDBGrid1.Splits[0].Style.Padding.Top = 2;
· Delphi
Self.C1TrueDBGrid1.Splits[0].Style.Padding.Bottom := 2;
Self.C1TrueDBGrid1.Splits[0].Style.Padding.Left := 2;
Self.C1TrueDBGrid1.Splits[0].Style.Padding.Right := 2;
Self.C1TrueDBGrid1.Splits[0].Style.Padding.Top := 2;
See Also
C1.Win.C1TrueDBGrid.Style Class | C1.Win.C1TrueDBGrid.Style Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |