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

Parameters

bagThe attribute bag.
ccThe 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.