Skip to content

Class AttributeValueTypeExtensions

Definition

Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll

Extensions for the AttributeValueType enum.

public static class AttributeValueTypeExtensions

Inheritance
Object ⇦ AttributeValueTypeExtensions

Members

Methods

Name Description
IsContextBinding(AttributeValueType) Tests if a given valueType is any type of context binding, regardless of its direction.

Details

Methods

IsContextBinding(AttributeValueType)

Tests if a given valueType is any type of context binding, regardless of its direction.

public static bool IsContextBinding(StardewUI.Framework.Grammar.AttributeValueType valueType);
Parameters

valueType   AttributeValueType
The value type.

Returns

Boolean

true if the attribute binds to a context property; false if it is some other type of attribute such as Literal or AssetBinding.