| Method | Description |
| HasBubbleUpHandlers |
Return true if event handlers for the event propagation BubbleUp phase have been attached to this object.
|
| HasTrickleDownHandlers |
Returns true if event handlers, for the event propagation TrickleDown phase, are attached to this object.
|
| RegisterCallback |
Adds an event handler to the instance.
|
| RegisterCallbackOnce |
Adds an event handler to the instance.
The event handler is automatically unregistered after it has been invoked exactly once.
|
| UnregisterAllRemovableCallbacks |
Removes all callbacks registered with CallbackOptions.Removable from the instance.
|
| UnregisterCallback |
Remove callback from the instance.
|
| Blur |
Tell the element to release the focus.
|
| Focus |
Attempts to give the focus to this element.
|
| Add |
Adds an element to the contentContainer of this element.
|
| AddComponent |
Attaches a component of type T to this element.
|
| AddMeshModifier |
Registers a modifier that runs after this element's mesh generation completes, before
its vertex data is copied to the GPU.
|
| AddToClassList |
Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.
|
| BringToFront |
Brings this element to the end of its parent children list. The element will be visually in front of any overlapping sibling elements.
|
| Children |
Returns the elements from its contentContainer.
|
| ClassListContains |
Searches for a class in the class list of this element.
|
| Clear |
Removes all child elements from this element's VisualElement.contentContainer.
|
| ClearBinding |
Removes a binding from the element.
|
| ClearBindings |
Removes all bindings from the element.
|
| ClearClassList |
Removes all classes from the class list of this element.
VisualElement.AddToClassList |
| ClearMeshModifiers |
Removes every modifier previously registered on this element. No-op if none are registered.
|
| Contains |
Checks if this element is an ancestor of the specified child element.
|
| ContainsPoint |
Checks if the specified point intersects with this VisualElement's layout.
|
| ElementAt |
Retrieves the child element at a specific index.
|
| EnableInClassList |
Enables or disables the class with the given name.
|
| FindAncestorUserData |
Searches up the hierarchy of this VisualElement and retrieves stored userData, if any is found.
|
| FindCommonAncestor |
Finds the lowest common ancestor between two VisualElements inside the VisualTree hierarchy.
|
| GetBinding |
Gets the binding instance for the provided targeted property.
|
| GetBindingInfos |
Gets information on all the bindings of the current element.
|
| GetClasses |
Retrieve the classes for this element.
|
| GetClassNames |
Retrieve the classes for this element.
|
| GetComponent |
Returns a reference to the attached component of type T.
|
| GetComponentRefOrNullRef |
Returns a reference to the component of type T attached to this
element, or a null reference when the component is not attached. This method never adds
a component.
|
| GetDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath of a binding object.
|
| GetFirstAncestorOfType |
Walks up the hierarchy, starting from this element's parent, and returns the first VisualElement of this type
|
| GetFirstOfType |
Walks up the hierarchy, starting from this element, and returns the first VisualElement of this type
|
| GetHierarchicalDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath inherited from the hierarchy.
|
| GetOrAddComponent |
Returns a reference to the component of type T attached to this
element. If the component is not attached yet, it is added first.
|
| HasBinding |
Allows to know if a target property has a binding associated to it.
|
| HasComponent |
Checks whether a component of type T is attached to this element.
|
| IndexOf |
Retrieves the child index of the specified VisualElement.
|
| Insert |
Insert an element into this element's contentContainer
|
| IsMarkedForRepaint |
Checks if the VisualElement is marked dirty for repaint.
|
| MarkComponentDirty |
Marks the attached component of type T as changed, so that its
[OnComponentChanged] handler runs once during the next update.
|
| MarkDirtyRepaint |
Marks that the VisualElement requires a repaint.
|
| MarkDirtyStyles |
Marks the element's resolved styles dirty so the next update re-resolves them, re-reading
USS custom property values. The style counterpart of VisualElement.MarkDirtyRepaint.
|
| NotifyComponentChanged |
Notifies the data binding system that a field of an attached component changed, so a binding
targeting that field (for example ${component:Tooltip}.text) can publish the new value.
|
| PlaceBehind |
Places this element right before the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually behind of its sibling.
|
| PlaceInFront |
Places this element right after the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually in front of its sibling.
|
| ReleaseResources |
Releases reusable resources associated with this element and makes the element unusable.
|
| Remove |
Removes this child from the VisualElement.hierarchy of its VisualElement.contentContainer.
|
| RemoveAt |
Removes a child, at the provided index, from the list of children of the current element.
|
| RemoveComponent |
Removes the attached component of type T.
|
| RemoveFromClassList |
Removes a class from the class list of the element.
|
| RemoveFromHierarchy |
Removes this element from its parent hierarchy.
|
| RemoveMeshModifier |
Removes a previously-registered modifier. The registration is identified by delegate
equality; pass the same callback reference that was registered. No-op if the callback is not
registered. If the callback was registered more than once, only the first matching registration
is removed.
|
| SendEvent |
Sends an event to the event handler.
|
| SendToBack |
Sends this element to the beginning of its parent children list. The element will be visually behind any overlapping sibling elements.
|
| SetActivePseudoState |
Sets whether or not this element is displayed as being active.
|
| SetBinding |
Assigns a binding between a target and a source.
|
| SetCheckedPseudoState |
Sets whether or not this element is displayed as being checked.
|
| SetEnabled |
Changes the VisualElement enabled state. A disabled visual element does not receive most events.
|
| Sort |
Reorders child elements from this VisualElement contentContainer.
|
| ToggleInClassList |
Toggles between adding and removing the given class name from the class list.
|
| TryGetBinding |
Gets the binding instance for the provided targeted property.
|
| TryGetDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath of a binding object.
|
| TryGetLastBindingToSourceResult |
Returns the last BindingResult of a binding object from the UI to the data source.
|
| TryGetLastBindingToUIResult |
Returns the last BindingResult of a binding object from the data source to the UI.
|
| TryRemoveComponent |
Removes the attached component of type T, if one is attached.
|