Skip to content

AnchorPosition

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Specifies the preferred position of a popup relative to its anchor widget.

csharp
public enum AnchorPosition

Fields

Above

Position the popup above the anchor, aligned to the anchor's left edge. Useful when there's no room below.

Returns: AnchorPosition

csharp
Above = 1

Below

Position the popup below the anchor, aligned to the anchor's left edge. Common for dropdown menus.

Returns: AnchorPosition

csharp
Below = 0

Left

Position the popup to the left of the anchor, aligned to the anchor's top edge.

Returns: AnchorPosition

csharp
Left = 2

Position the popup to the right of the anchor, aligned to the anchor's top edge. Common for cascading/submenu patterns.

Returns: AnchorPosition

csharp
Right = 3

Released under the MIT License.