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
roleVisualRoleThe 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
roleNamestringThe name of the VisualRole describing the element being rendered.