Professional Documents
Culture Documents
Solutions 127
Solutions 127
Solution
There is no backward link from the profile to the images that use that profile, so you must iterate through
the images using the link manager interfaces to find the images that use a specific profile. Follow these
steps:
1. Get the UID of the profile the current image uses, by querying the IID_ICMSPROFILEUID interface and
using IPersistUIDData->GetUID.
Related APIs
ICMSProfile
ICMSProfileList
ICMSUtils
ILinksManager
IPersistUIDData
Graphic attributes
Applying multiple graphic attributes to page items
You can apply multiple graphic attributes to page items.
Solution
1. Determine the attributes you want apply. Typically, you should know the boss ClassID for each
attribute.
3. Create an instance of each appropriate attribute boss object, and set the appropriate attribute value.
This can be done by using the CreateObject method (from CreateObject.h), querying for the attribute
data interface (such as IGraphicAttrRealNumber), and setting the value. You also can use existing
utility methods on IGraphicsAttributeUtils directly.