Instance Property

hasHorizontalRuler

A Boolean that indicates whether the scroll view keeps a horizontal ruler object.

Declaration

@property BOOL hasHorizontalRuler;

Discussion

When the value of this method is YES, the scroll view allocates a horizontal ruler the first time it’s needed.

Display of rulers is controlled using the rulersVisible property.

See Also

Managing Rulers

rulerViewClass

Returns the default class to be used for ruler objects in NSScrollViews.

horizontalRulerView

The scroll view’s horizontal ruler view.

hasVerticalRuler

A Boolean that indicates whether the scroll view keeps a vertical ruler object.

verticalRulerView

The scroll view’s vertical ruler view.

rulersVisible

A Boolean that indicates whether the scroll view displays its rulers.