This document is archived and information here might be outdated.  Recommended version.

IActiveView.ShowRulers Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.ShowRulers Property
ArcGIS Developer Help

IActiveView.ShowRulers Property

Indicates if rulers are visible.

[Visual Basic .NET]
Public Property ShowRulers As Boolean
public bool ShowRulers {get; set;}
HRESULT get_ShowRulers(
  Boolean* ShowRulers
HRESULT put_ShowRulers(
ShowRulers [out, retval]

ShowRulers is a parameter of type bool* ShowRulers [in]
ShowRulers is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


This property is a boolean flag that applications use to determine whether or not to draw rulers.

This property cannot be set for Maps, they always have rulers turned off.

The PageLayout is the only active view with rulers; an active view change is required before the setting is reflected in the applications window.

See Also

IActiveView Interface