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


IPageLayout.RulerSettings Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IPageLayout.RulerSettings Property

The ruler settings.

[Visual Basic .NET]
Public ReadOnly Property RulerSettings As IRulerSettings
[C#]
public IRulerSettings RulerSettings {get;}
[C++]
HRESULT get_RulerSettings(
  IRulerSettings** RulerSettings
);
[C++]

Parameters RulerSettings [out, retval]
RulerSettings is a parameter of type IRulerSettings

Product Availability

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

Remarks

You can use rulers, guides, and grids in layout view to align elements on the page.  Rulers show the size of the page and elements on the final printed map.

This property returns an IRulerSettings reference on the RulerSettings object.  The PageLayout object has a RulerSettings object which manages ruler settings.  IRulerSettings only has one property, SmallestDivision.  This property controls the size of the smallest ruler division in page units.  For example, if the page size is 8.5 by 11 inches, and the SmallestDivision is set to 2, the rulers, seen in layout view, will read off every 2 inches; if the property is set to .1, the rulers will read of every 1/10 of an inch.

See Also

IPageLayout Interface