Skip to main content
A newer version of this page is available. .

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

Initializes a new instance of the MagnifierDialog class with the specified settings.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.1.dll

Declaration

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

Parameters

Name Type Description
owner IWin32Window

An IWin32Window object that owns this Magnifier.

initialZoomFactor Single

A Single value that is the initial Magnifier zoom level. Users can zoom in and out using a mouse scroll wheel.

closeOnMouseClick Boolean

true if the Magnifier should automatically close immediately after a user clicks the left mouse button to select a color; false if the Magnifier closes only when user presses “Esc” or clicks the right mouse button.

pickColorToClipboard Boolean

true, if the selected color should be copied to the clipboard; otherwise, false.

colorFormat DevExpress.Utils.ColorFormat

A ColorFormat that specifies whether the Magnifier displays remembered and hovered colors in RGB or HEX format.

Returns

Type Description
MagnifierDialogResult

A MagnifierDialogResult object that stores the last remembered Magnifier zoom level and colors selected by a user.

See Also