PopupControlSettings.PopupHorizontalAlign Property

Gets or sets a popup window's horizontal alignment.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll

Declaration

public PopupHorizontalAlign PopupHorizontalAlign { get; set; }
Public Property PopupHorizontalAlign As PopupHorizontalAlign

Property Value

Type Description
PopupHorizontalAlign

One of the PopupHorizontalAlign enumeration values.

Available values:

Name Description
NotSet

A popup element is displayed on the x-coordinate of the mouse cursor position.

PopupHorizontalAlign_None.png

OutsideLeft

A popup element is displayed to the left of the corresponding HTML element, so that the x-coordinate of the popup element's right border is equal to the x-coordinate of the HTML element's left border.

PopupHorizontalAlign_OutsideLeft.png

LeftSides

A popup element is displayed so that its left border's x-coordinate equals the x-coordinate of the corresponding HTML element's left border.

PopupHorizontalAlign_LeftSides.png

Center

A popup element is displayed so that the x-coordinate of the popup element's center equals the x-coordinate of the corresponding HTML element's center.

PopupHorizontalAlign_Center.png

RightSides

A popup element is displayed so that the x-coordinate of the popup element's right border equals the x-coordinate of the corresponding HTML element's right border.

PopupHorizontalAlign_RightSides.png

OutsideRight

A popup element is displayed to the right of the corresponding HTML element so that the x-coordinate of the popup element's left border is equal to the x-coordinate of the HTML element's right border.

PopupHorizontalAlign_OutsideRight.png

WindowCenter

A popup element is displayed so that it is horizontally aligned at the center of the browser's window.

Remarks

The default popup window (or all popup windows from the PopupControlSettings.Windows collection) is aligned horizontally on the x-coordinate of the mouse cursor position by default. Use the PopupHorizontalAlign property to set the window alignment relative to the corresponding element specified by the PopupControlSettings.PopupElementID (PopupWindow.PopupElementID) property, or to display the window at the center of the browser window.

See Also