|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISnapGuides
Provides access to members that control the Snapping guides.
You can use guides in the page layout view to align elements on the page.
The PageLayout object has two SnapGuides objects, one for managing horizontal guides, and one for managing vertical guides. Use IPageLayout::VerticalSnapGuides or IPageLayout::HorizontalSnapguides to obtain a reference to the desired SnapGuides object.
Each SnapGuides object manages an internal collection of individual guides. Use ISnapGuides to add a new guide, remove a guide, and turn the visibility of the guides on or off.
Method Summary | |
---|---|
void |
addGuide(double pos)
Adds a guide at the specified position. |
void |
draw(IDisplay display,
boolean isHorizontal)
Draw a fine line showing exactly where objects will snap. |
void |
drawHighlight(IDisplay display,
boolean isHorizontal)
Draw a highlight around the snap line for a nice visual effect. |
int |
getDrawLevel()
Level where guides are drawn. |
double |
getGuide(int idx)
The nth guide. |
int |
getGuideCount()
The number of guides. |
boolean |
isAreVisible()
Indicates if snapping guides are visible. |
void |
removeAllGuides()
Removes all the guides. |
void |
removeGuide(int idx)
Removes the nth guide. |
void |
setAreVisible(boolean areVisible)
Indicates if snapping guides are visible. |
void |
setDrawLevel(int drawLevel)
Level where guides are drawn. |
void |
setGuide(int idx,
double pos)
The nth guide. |
Method Detail |
---|
boolean isAreVisible() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAreVisible(boolean areVisible) throws IOException, AutomationException
areVisible
- The areVisible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDrawLevel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDrawLevel(int drawLevel) throws IOException, AutomationException
drawLevel
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getGuideCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGuide(int idx, double pos) throws IOException, AutomationException
idx
- The idx (in)pos
- The pos (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getGuide(int idx) throws IOException, AutomationException
idx
- The idx (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addGuide(double pos) throws IOException, AutomationException
pos
- The pos (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeGuide(int idx) throws IOException, AutomationException
idx
- The idx (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAllGuides() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void draw(IDisplay display, boolean isHorizontal) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)isHorizontal
- The isHorizontal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void drawHighlight(IDisplay display, boolean isHorizontal) throws IOException, AutomationException
display
- A reference to a com.esri.arcgis.display.IDisplay (in)isHorizontal
- The isHorizontal (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 |