TextAttribute.forName

Get the #AtkTextAttribute type corresponding to a text attribute name.

struct TextAttribute
static
forName
(
string name
)

Parameters

name string

a string which is the (non-localized) name of an ATK text attribute.

Return Value

Type: atk.types.TextAttribute

the #AtkTextAttribute enumerated type corresponding to the specified name, or #ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute is found.