|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRulerSettings
Provides access to members that control Ruler setup.
The IRulerSettings interface only has one property, SmallestDivision. This property controls the size of the smallest ruler division in page units of the rulers of the page layout.
Method Summary | |
---|---|
double |
getSmallestDivision()
The size of the smallest ruler division. |
void |
setSmallestDivision(double rulerDivision)
The size of the smallest ruler division. |
Method Detail |
---|
double getSmallestDivision() throws IOException, AutomationException
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.
MapControl pMapControl = new MapControl();IRulerSettings pRulerSettings;pRulerSettings = pMapControl.getPageLayout().getRulerSettings();pRulerSettings.setSmallestDivision(2);pMapControl.getActiveView().refresh();
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSmallestDivision(double rulerDivision) throws IOException, AutomationException
MapControl pMapControl = new MapControl();IRulerSettings pRulerSettings;pRulerSettings = pMapControl.getPageLayout().getRulerSettings();pRulerSettings.setSmallestDivision(2);pMapControl.getActiveView().refresh();
rulerDivision
- The rulerDivision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |