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
public class SftColorDialog : System.Windows.Forms.CommonDialog;
Public Class SftColorDialog
Inherits System.Windows.Forms.CommonDialog![]() | SftColorDialog | Initializes a new instance of the SftColorDialog class. |
![]() | AllowAlpha | Defines whether the user can choose a partially transparent color. |
![]() | AllowFullOpen | Defines whether the user can define custom colors. |
![]() | AnyColor | Defines whether the dialog shows all available colors. |
![]() ![]() | CanRaiseEvents | Gets a value indicating whether the component can raise an event. |
![]() | Color | Defines the color selected in the dialog. |
![]() ![]() | Container | Gets the IContainer that contains the Component. |
![]() | Contents | The license information, which the Visual Studio designer saves with the form. |
![]() | CustomColors | Defines the custom colors of the dialog. |
![]() ![]() | DesignMode | Gets a value that indicates whether the Component is currently in design mode. |
![]() ![]() | Events | Gets the list of event handlers that are attached to this Component. |
![]() | FullOpen | Defines whether the color editor is shown when the dialog opens. |
![]() | ShowHelp | Defines whether the dialog shows a Help button. |
![]() ![]() | Site | Gets or sets the ISite of the Component. |
![]() | SolidColorOnly | Defines whether the chosen color is made fully opaque. |
![]() ![]() | Tag | Gets or sets an object that contains data about the control. |
![]() ![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
![]() ![]() | Dispose | Releases all resources used by the Component. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
![]() ![]() | GetService | Returns an object that represents a service provided by the Component or by its Container. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | HookProc | Defines the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box. |
![]() ![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() | OnHelpRequest | Raises the HelpRequest event. |
![]() ![]() | OwnerWndProc | Defines the owner window procedure that is overridden to add specific functionality to a common dialog box. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() | Reset | Resets all properties to their default values. |
![]() | RunDialog | Shows the dialog. |
![]() ![]() | ShowDialog | Runs a common dialog box with a default owner. |
![]() | ToString | Returns a description of the dialog and its color. |
![]() ![]() | Disposed | Occurs when the component is disposed by a call to the Dispose method. |
![]() ![]() | HelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See Also Classes | SftStyle/NET 3.0