UxmlTypeAttributeDescription<T0>.TryGetValueFromBag

Declaration

public bool TryGetValueFromBag(UIElements.IUxmlAttributes bag, UIElements.CreationContext cc, ref Type value);

Parameters

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

Returns

bool True if the method can retrieve the attribute's value. False otherwise.

Description

Method that tries to retrieve an attribute's value from an attribute bag.. Returns true if it is found, otherwise returns false.


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