UxmlEnumAttributeDescription<T0>.TryGetValueFromBag
public bool TryGetValueFromBag(UIElements.IUxmlAttributes bag,
UIElements.CreationContext cc,
ref T value);
Parameters
| bag | The bag of attributes. | |
| cc | The context in which the values are retrieved. | |
| value | The value of the attribute. |
Returns
bool True if the value could be retrieved, false otherwise.
Description 描述
Tries to retrieve the value of this attribute from the attribute bag. Returns true if it is found, otherwise returns false.