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
[C#]
public bool ShowRulers {get; set;}
[C++]
HRESULT get_ShowRulers(
  Boolean* ShowRulers
);
[C++]
HRESULT put_ShowRulers(
  VARIANT_BOOL ShowRulers
);
[C++]
Parameters
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.

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