Method in MarkupParseResult
Gets the first attribute with the specified name, if present.
public bool TryGetAttributeWithName(string name, out MarkupAttribute attribute)
Name | Description |
---|---|
string name |
The name of the attribute to get. |
Yarn.Markup.MarkupAttribute attribute | When this method returns, contains the attribute with the specified name, if the attribute is found; otherwise, the default MarkupAttribute . This parameter is passed uninitialized. |
true
if the MarkupParseResult contains an attribute with the
specified name; otherwise, false
.