InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpManipulateGraphicAttributes Class Reference

Public Member Functions

 SnpManipulateGraphicAttributes ()
 
virtual ~SnpManipulateGraphicAttributes ()
 
ErrorCode Apply (const UIDList &itemList)
 
void Inspect (const UIDRef &pageItemUIDRef)
 

Detailed Description

  • How to apply graphic attributes that control how a path is drawn using the low level API,
  • How to inspect the graphic attributes applied to a page item,
  • the attributes that control stroke weight, stroke colour, fill colour, mitre, line cap, dashed lines, rounded corners, line end and other effects are shown,
  • for documentation on low level manipulation of graphic attributes read SnpGraphicHelper and check out IGraphicAttributeUtils,
  • check out IGraphicAttributeSuite for a ready made suite if you don't need low level access.
See Also
SnpGraphicHelper
IGraphicAttributeSuite
IGraphicAttributeUtils
IGraphicStyleDescriptor

Constructor & Destructor Documentation

SnpManipulateGraphicAttributes::SnpManipulateGraphicAttributes ()
inline

Constructor.

virtual SnpManipulateGraphicAttributes::~SnpManipulateGraphicAttributes ()
inlinevirtual

Destructor

Member Function Documentation

ErrorCode SnpManipulateGraphicAttributes::Apply (const UIDListitemList)

Changes the value of a single graphic attribute in all the given items.

The attributes this method can change represent some of the most frequently used. Once the attribute and its value have been obtained SnpGraphicHelper is used to make the change. If you want to change more than one attribute value at a time you can, check out SnpGraphicHelper for how.

Parameters
itemListreferences the page items to be changed.
Returns
kSuccess on success, other ErrorCode otherwise.
void SnpManipulateGraphicAttributes::Inspect (const UIDRefpageItemUIDRef)

Inspect some of the graphic attributes that apply to the given page item.

Parameters
pageItemUIDRefto be inspected.