Attributes and styles

Documents, models, anchor markers, links, and commands can have styles or attributes attached to them. Both attributes and styles allow others to attach extensible properties to the instances of the Compound Document framework classes.

You can inherit the model styles using the document component embedding hierarchy. A document component can inherit styles from its ancestors up to the root document component in which it lives.

Document components have the means for looking up styles on a specific child and for including or excluding ancestors from the lookup.

Only model styles are inherited. You cannot inherit other attribute styles through the embedding hierarchy. Commands might have attributes but have no position whatsoever in the embedding hierarchy.

Both attributes and styles are maintained in simple attribute groups. The Compound Document framework provides the inheritance behavior of model styles rather than using the inheritance support found in TInheritableAttributeGroup because all components in the embedding hierarchy are not necessarily in memory at one time, and this behavior is not supported by TInheritableAttributeGroup.

Creation and deletion

You create attributes and styles outside of the object to which you will attach them. Attributes and styles can then be adopted or orphaned by the object.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker