Skip to content

Interface IAttribute

Definition

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

Attribute of a StarML element.

public interface IAttribute

Members

Properties

Name Description
ContextRedirect Specifies the redirect to use for a context binding, if applicable and if the ValueType is one of the context binding types.
IsNegated Whether the attribute has a negation. Validity and behavior depend on the specific attribute.
Name The attribute name.
Type The type of the attribute itself, defining how the Name should be interpreted.
Value The literal value text.
ValueType The type of the value expression, defining how the Value should be interpreted.

Methods

Name Description
Print(StringBuilder) Prints the textual representation of this node.

Details

Properties

ContextRedirect

Specifies the redirect to use for a context binding, if applicable and if the ValueType is one of the context binding types.

StardewUI.Framework.Dom.ContextRedirect ContextRedirect { get; }
Property Value

ContextRedirect


IsNegated

Whether the attribute has a negation. Validity and behavior depend on the specific attribute.

bool IsNegated { get; }
Property Value

Boolean


Name

The attribute name.

string Name { get; }
Property Value

string


Type

The type of the attribute itself, defining how the Name should be interpreted.

StardewUI.Framework.Grammar.AttributeType Type { get; }
Property Value

AttributeType


Value

The literal value text.

string Value { get; }
Property Value

string


ValueType

The type of the value expression, defining how the Value should be interpreted.

StardewUI.Framework.Grammar.AttributeValueType ValueType { get; }
Property Value

AttributeValueType


Methods

Print(StringBuilder)

Prints the textual representation of this node.

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

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