You are on page 1of 1

CHAPTER 1: Layout Guides and grids 40

 IGuidePrefs

 kGuideItemBoss

 kNewGuideCmdBoss

Deleting a ruler guide


Solution

Use kDeleteCmdBoss.

Moving a ruler guide


Solution

To move the guide relative to its current position, use kMoveGuideRelativeCmdBoss.

To move the guide to an absolute position, use kMoveGuideAbsoluteCmdBoss.

Related API

kGuideItemBoss

Changing the color, view threshold, or orientation of ruler guides


Solution

To change the color of a ruler guide, process the command created by calling
IGuideUtils::MakeChangeColorGuideCmd.

To change the view threshold of a ruler guide, use kSetGuideViewThresholdCmdBoss.

To change the horizontal or vertical orientation of a ruler guide, use kSetGuideOrientationCmdBoss.

Related API

kGuideItemBoss

Showing and hiding guides


Solution

To show or hide all guides, use kSetGuidePrefsCmdBoss.

To show or hide ruler guides associated with a specific layer, use kShowGuideLayerCmdBoss.

You might also like