Method GetPreferredTooltipPlacement
GetPreferredTooltipPlacement(VisualElement)
Get the preferred placement for a VisualElement's Tooltip.
Declaration
public static PopoverPlacement GetPreferredTooltipPlacement(this VisualElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | element | The VisualElement which contains a tooltip. |
Returns
| Type | Description |
|---|---|
| PopoverPlacement | The preferred placement, previously set using SetPreferredTooltipPlacement(VisualElement, PopoverPlacement) or the closest value set on a parent ContextProvider element. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The VisualElement object can't be null. |