All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MagnifierDialog.ShowDialog(IWin32Window, Single, Boolean, Boolean, ColorFormat, Boolean, Boolean) Method

Displays the MagnifierDialog with custom parameters.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v21.1.dll

Declaration

public static MagnifierDialogResult ShowDialog(
    IWin32Window owner,
    float initialZoomFactor,
    bool closeOnMouseClick,
    bool pickColorToClipboard,
    ColorFormat colorFormat,
    bool showPixelGrid,
    bool showColors
)

Parameters

Name Type Description
owner IWin32Window

A form that owns this dialog.

initialZoomFactor Single

The initial zoom ratio.

closeOnMouseClick Boolean

true if the dialog should close when a user clicks the left mouse button, false if left clicks should not close the dialog. In the latter case, a user should press Esc to hide the magnifier.

pickColorToClipboard Boolean

Specifies whether a color under the magnifier crosshair should be copied to the clipboard when a user clicks the left mouse button.

colorFormat DevExpress.Utils.ColorFormat

Specifies whether the magnifier should store clicked colors as Hexadecimal or ARGB values.

showPixelGrid Boolean

true to show a pixel grid inside the magnifier; otherwise, false.

showColors Boolean

Specifies whether the magnifier should display the previously clicked and currently hovered colors in its upper right corner.

Returns

Type Description
MagnifierDialogResult

A structure that stores the last remembered magnifier zoom level and colors selected by a user.

See Also