Professional Documents
Culture Documents
Solutions 129
Solutions 129
Create an appropriate command. For information on what such a command should do, see “Applying
graphic attributes to the active selection”. If the attribute you want to apply is a rendering attribute,
use kBoss_GfxStateApplyROAttributeCmd; if the attribute is not a rendering attribute, use
kGfxApplyAttrOverrideCmdBoss. Process the command.
Sample code
BscDNDDragSource
BscShpActionComponent
Related APIs
CmdUtils
CreateObject
Solution
2. Look for an appropriate Get method on IGraphicAttributeUtils; for example, GetStrokeWeight for
stroke weight. If such a method exists, call it to get the attribute value.
3. If no Get method is available for the graphic attribute you want, call that QueryAttribute method on
the IGraphicStyleDescriptor directly, passing in the attribute ClassID and interface ID of the attribute
value.
Sample code
SnpManipulateGraphicAttributes
Related APIs
IGraphicsAttributeUtils