MarkupParseResult
Struct in Yarn.Markup
Inherits from System.ValueType
Summary
The result of parsing a line of marked-up text.
public struct MarkupParseResultRemarks
You do not create instances of this struct yourself. It is created by objects that can parse markup, such as Dialogue .
Constructors
| Name | Description |
|---|---|
| MarkupParseResult(string,List | Initializes a new instance of the MarkupParseResult struct. |
Methods
| Name | Description |
|---|---|
| DeleteRange(MarkupAttribute) | Deletes an attribute from this markup. |
| TextForAttribute(MarkupAttribute) | Returns the substring of Text covered by attribute Position and Length properties. |
| TryGetAttributeWithName(string,MarkupAttribute) | Gets the first attribute with the specified name, if present. |
Properties
| Name | Description |
|---|---|
| Attributes | The list of MarkupAttribute s in this parse result. |
| Text | The original text, with all parsed markers removed. |
See Also
- Yarn.Markup.LineParser.ParseString(System.String,System.String,System.Boolean,System.Boolean,System.Boolean):