GetAttributeValue(CosName, CosName) Method

Definition

Assembly Broadside.dll

Returns the value of attribute name of owner in effect for this element: from its A entry, else from its classes (C), else inherited from the parent when the attribute is inheritable, else the attribute's default.

public CosObject? GetAttributeValue(CosName owner, CosName name)

Parameters

owner
CosName

The attribute owner, such as Layout, List, PrintField or Table.

name
CosName

The attribute name.

Returns

CosObject
The value, or null when no source gives one (or the default depends on the element, such as Placement).

Remarks

ISO 32000-2 §14.8.5.3 steps 2-5 and §14.7.6.2: within A, and within the classes, a later object wins; A wins over C. Inheritable attributes and defaults follow Tables 378-385 (errata Table 377); TextDecorationType is not inherited. Format owners (step 1, CSS-3 and the like) are not consulted.