UxmlTypeAttributeDescription<T0>.GetValueFromBag

Declaration

public Type GetValueFromBag(UIElements.IUxmlAttributes bag, UIElements.CreationContext cc);

Parameters

bag The attribute bag.
cc The context in which the method retrieves attribute values.

Returns

Type The attribute's value. If the method cannot find the value, returns defaultValue.

Description

Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.


Did you find this page useful? Please give it a rating: