Object Reference > True DBGrid Properties > HScrollHeight Property |
Returns the horizontal scroll bar height, if present.
object.HScrollHeight
Read-only at run time. Not available at design time.
The HScrollHeight property returns the height of a split's horizontal scroll bar in container units, which depend on the ScaleMode (Visual Basic) of the container. If no horizontal scroll bar exists, then the returned value is zero. If object is a TDBGrid control, then its current split is used.
You can use the HScrollHeight and VScrollWidth properties to check if the scroll bars are present and to obtain the scroll bar size when designing the grid layout and sizing the grid and its columns.