Gets the collection of Split objects.
[Visual Basic]
Public ReadOnly Property Splits As SplitCollection
[C#]
public SplitCollection Splits {get;}
[Delphi]
public property Splits: SplitCollection read get_Splits;
Example
The following code accepts a single Integer and returns a horizontal split object:
Me.C1TrueDBGrid.Splits(2).SpringMode = True
· C#
this.c1TrueDBGrid.Splits[2].SpringMode = true;
· Delphi
Self.C1TrueDBGrid.Splits[2].SpringMode := True;
The following code accepts the name of the split as a String (if one was specified), and returns either the horizontal or vertical split specified:
Me.C1TrueDBGrid.Splits("ThirdSplit").SpringMode = True
· C#
this.C1TrueDBGrid.Splits["ThirdSplit"].SpringMode = true;
· Delphi
Self.C1TrueDBGrid.Splits['ThirdSplit'].SpringMode := True;
In order to return splits from a split matrix, this property also accepts two integers delimited by a comma that define the split index in the split matrix. The following code accesses the 1st split in the 3rd row:
Me.C1TrueDBGrid.Splits(2, 0).SpringMode = True
· C#
this.c1TrueDBGrid.Splits[2, 0].SpringMode = true;
· Delphi
Self.C1TrueDBGrid.Splits[2, 0].SpringMode := True;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |