MagnifierDialog.ShowDialog(IWin32Window, Single, Boolean, Boolean, ColorFormat, Boolean, Boolean) Method
Displays the MagnifierDialog with custom parameters.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#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. |
initial |
Single | The initial zoom ratio. |
close |
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. |
pick |
Boolean | Specifies whether a color under the magnifier crosshair should be copied to the clipboard when a user clicks the left mouse button. |
color |
DevExpress. |
Specifies whether the magnifier should store clicked colors as Hexadecimal or ARGB values. |
show |
Boolean | true to show a pixel grid inside the magnifier; otherwise, false. |
show |
Boolean | Specifies whether the magnifier should display the previously clicked and currently hovered colors in its upper right corner. |
#Returns
Type | Description |
---|---|
Magnifier |
A structure that stores the last remembered magnifier zoom level and colors selected by a user. |