Back to Devexpress

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

windowsforms-devexpress-dot-utils-dot-magnifierdialog-dot-showdialog-x28-system-dot-windows-dot-forms-dot-iwin32window-system-dot-single-system-dot-boolean-system-dot-boolean-devexpress-dot-utils-dot-colorformat-x29.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static MagnifierDialogResult ShowDialog(
    IWin32Window owner,
    float initialZoomFactor,
    bool closeOnMouseClick,
    bool pickColorToClipboard,
    ColorFormat colorFormat
)
vb
Public Shared Function ShowDialog(
    owner As IWin32Window,
    initialZoomFactor As Single,
    closeOnMouseClick As Boolean,
    pickColorToClipboard As Boolean,
    colorFormat As ColorFormat
) As MagnifierDialogResult

Parameters

NameTypeDescription
ownerIWin32Window

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

TypeDescription
MagnifierDialogResult

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

|

See Also

MagnifierDialog Class

MagnifierDialog Members

DevExpress.Utils Namespace