MarkupParseResult.TryGetAttributeWithName(string,MarkupAttribute)

Method in MarkupParseResult

Summary

Gets the first attribute with the specified name, if present.

public readonly bool TryGetAttributeWithName(string name, out MarkupAttribute attribute)

Parameters

NameDescription
string nameThe name of the attribute to get.
Yarn.Markup.MarkupAttribute attributeWhen this method returns, contains the attribute with the specified name, if the attribute is found; otherwise, the default MarkupAttribute . This parameter is passed uninitialized.

Returns

true if the MarkupParseResult contains an attribute with the specified name; otherwise, false .