Back to Devexpress

MagnifierDialog.ShowDialog(IWin32Window, Single, Boolean, Boolean, ColorFormat, Boolean) 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-system-dot-boolean-x29.md

latest3.3 KB
Original Source

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

Displays the MagnifierDialog with specific parameters.

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,
    bool showPixelGrid
)
vb
Public Shared Function ShowDialog(
    owner As IWin32Window,
    initialZoomFactor As Single,
    closeOnMouseClick As Boolean,
    pickColorToClipboard As Boolean,
    colorFormat As ColorFormat,
    showPixelGrid As Boolean
) As MagnifierDialogResult

Parameters

NameTypeDescription
ownerIWin32Window

An MagnifierDialogResult interface descendant that owns this MagnifierDialog.

| | initialZoomFactor | Single |

An Int32 value that specifies the MagnifierDialog‘s initial zoom level.

| | closeOnMouseClick | Boolean |

true if the MagnifierDialog should automatically close when a user presses the left mouse button; otherwise, false.

| | pickColorToClipboard | Boolean |

true to copy a clicked color to the clipboard; otherwise, false.

| | colorFormat | DevExpress.Utils.ColorFormat |

A ColorFormat enumeration value that specifies whether the MagnifierDialog should return selected colors as Hexadecimal or ARGB values.

| | showPixelGrid | Boolean |

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

|

Returns

TypeDescription
MagnifierDialogResult

A MagnifierDialogResult object that stores selected colors and zoom level.

|

See Also

MagnifierDialog Class

MagnifierDialog Members

DevExpress.Utils Namespace