Skip to content

Interface IElement

Definition

Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll

Element in a StarML document, including the tag and all enclosed attributes.

public interface IElement

Members

Properties

Name Description
Attributes The parsed list of attributes applied to this instance of the tag.
Events The parsed list of events applied to this instance of the tag.
Tag The parsed tag name.

Methods

Name Description
Print(StringBuilder, Boolean) Prints the textual representation of this element.
PrintClosingTag(StringBuilder) Prints the closing tag for this element.

Details

Properties

Attributes

The parsed list of attributes applied to this instance of the tag.

System.Collections.Generic.IReadOnlyList<StardewUI.Framework.Dom.IAttribute> Attributes { get; }
Property Value

IReadOnlyList<IAttribute>


Events

The parsed list of events applied to this instance of the tag.

System.Collections.Generic.IReadOnlyList<StardewUI.Framework.Dom.IEvent> Events { get; }
Property Value

IReadOnlyList<IEvent>


Tag

The parsed tag name.

string Tag { get; }
Property Value

string


Methods

Print(StringBuilder, bool)

Prints the textual representation of this element.

void Print(System.Text.StringBuilder sb, bool asSelfClosing);
Parameters

sb   StringBuilder
Builder to receive the element's text output.

asSelfClosing   Boolean
Whether to print the element as a self-closing tag, i.e. whether to include a / character before the closing >.


PrintClosingTag(StringBuilder)

Prints the closing tag for this element.

void PrintClosingTag(System.Text.StringBuilder sb);
Parameters

sb   StringBuilder
Builder to receive the element's text output.