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


IActiveView.ShowRulers Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IActiveView.ShowRulers Property

Indicates if rulers are visible.

[Visual Basic .NET]
Public Property ShowRulers As Boolean
[C#]
public bool ShowRulers {get; set;}
[C++]
HRESULT get_ShowRulers(
  VARIANT_BOOL* ShowRulers
);
[C++]
HRESULT put_ShowRulers(
  VARIANT_BOOL ShowRulers
);
[C++]

Parameters ShowRulers [out, retval] ShowRulers is a parameter of type VARIANT_BOOL ShowRulers [in] ShowRulers is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

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