HeaderPane
Main
Hide
Share Link
Print

SftColorDialog Class

Displays a color dialog in light mode, dark mode or with the colors of the Windows contrast theme.

SftColorDialog has the properties of the Windows Forms ColorDialog and is shown the same way, with CommonDialog.ShowDialog. The user picks a basic color, a named color, a system color or a custom color, or defines a color with the saturation and brightness area, the hue strip, the hexadecimal, RGB and HSV fields or by picking it from the screen; with SftColorDialog.AllowAlpha the color can be partially transparent.

A named or system color the user picks and does not change is returned as that color (for example SystemColors.Window), so controls that translate system colors in dark mode keep doing so.

The dialog uses the mode of the application's SftStyle component, which every application that uses SftStyle/NET has and which carries the license a color dialog created in code needs; it takes the mode when it opens. Its texts are English, except the OK, Cancel and Help buttons, which come in the language of Windows.

Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET

Inheritance

Syntax

public class SftColorDialog : System.Windows.Forms.CommonDialog;
Public Class SftColorDialog
    Inherits System.Windows.Forms.CommonDialog

Constructors

PublicSftColorDialogInitializes a new instance of the SftColorDialog class.

Properties

PublicAllowAlphaDefines whether the user can choose a partially transparent color.
PublicAllowFullOpenDefines whether the user can define custom colors.
PublicAnyColorDefines whether the dialog shows all available colors.
ProtectedInherited from System.ComponentModel.ComponentCanRaiseEventsGets a value indicating whether the component can raise an event.
PublicColorDefines the color selected in the dialog.
PublicInherited from System.ComponentModel.ComponentContainerGets the IContainer that contains the Component.
PublicContentsThe license information, which the Visual Studio designer saves with the form.
PublicCustomColorsDefines the custom colors of the dialog.
ProtectedInherited from System.ComponentModel.ComponentDesignModeGets a value that indicates whether the Component is currently in design mode.
ProtectedInherited from System.ComponentModel.ComponentEventsGets the list of event handlers that are attached to this Component.
PublicFullOpenDefines whether the color editor is shown when the dialog opens.
PublicShowHelpDefines whether the dialog shows a Help button.
PublicInherited from System.ComponentModel.ComponentSiteGets or sets the ISite of the Component.
PublicSolidColorOnlyDefines whether the chosen color is made fully opaque.
PublicInherited from System.Windows.Forms.CommonDialogTagGets or sets an object that contains data about the control.

Methods

PublicInherited from System.MarshalByRefObjectCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
PublicInherited from System.ComponentModel.ComponentDisposeReleases all resources used by the Component.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ComponentModel.ComponentFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.MarshalByRefObjectGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
ProtectedInherited from System.ComponentModel.ComponentGetServiceReturns an object that represents a service provided by the Component or by its Container.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.Windows.Forms.CommonDialogHookProcDefines the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box.
PublicInherited from System.MarshalByRefObjectInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
ProtectedInherited from System.Windows.Forms.CommonDialogOnHelpRequestRaises the HelpRequest event.
ProtectedInherited from System.Windows.Forms.CommonDialogOwnerWndProcDefines the owner window procedure that is overridden to add specific functionality to a common dialog box.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicResetResets all properties to their default values.
ProtectedRunDialogShows the dialog.
PublicInherited from System.Windows.Forms.CommonDialogShowDialogRuns a common dialog box with a default owner.
PublicToStringReturns a description of the dialog and its color.

Events

PublicInherited from System.ComponentModel.ComponentDisposedOccurs when the component is disposed by a call to the Dispose method.
PublicInherited from System.Windows.Forms.CommonDialogHelpRequestOccurs when the user clicks the Help button on a common dialog box.

See Also Classes | SftStyle/NET 3.0