| Parameter | Description |
|---|---|
| ve | The element to search from. |
UIDocument The UIDocument containing the element, or null if the element is not part of a UIDocument.
Finds the UIDocument whose UI hierarchy contains the given element.
If the element is inside a nested UIDocument, the closest one is returned.