Method GetAttributeForRole
GetAttributeForRole(VisualRole)
Gets the Attribute associated with a specified VisualRole, applying inheritance rules for attributes not explicitly set.
public Attribute GetAttributeForRole(VisualRole role)
Parameters
role
VisualRoleThe semantic VisualRole describing the element being rendered.
Returns
GetAttributeForRole(string)
Gets the Attribute associated with a specified VisualRole string.
public Attribute GetAttributeForRole(string roleName)
Parameters
roleName
stringThe name of the VisualRole describing the element being rendered.