Gets the VBar object that controls the appearance of the vertical scrollbar.
[Visual Basic]
Public ReadOnly Property VScrollBar As VBar
[C#]
public VBar VScrollBar {get;}
[Delphi]
public property VScrollBar: VBar read get_VScrollBar;
Example
The following code assigns the width of the vertical scrollbar to 20 pixels and sets the ScrollBarStyleEnum to ScrollBarStyleEnum.Always so the vertical scrollbar always appears:
Me.C1TrueDBGrid1.VScrollBar.Style = C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always
Me.C1TrueDBGrid1.VScrollBar.Width = 20
· C#
this.c1TrueDBGrid1.VScrollBar.Style = C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always;
this.c1TrueDBGrid1.VScrollBar.Width = 20;
· Delphi
Self.C1TrueDBGrid1.VScrollBar.Style := C1.Win.C1TrueDBGrid.ScrollBarStyleEnum.Always;
Self.C1TrueDBGrid1.VScrollBar.Width := 20
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |