RhinoCommon API
DialogsShowColorDialog Method (Color, Boolean, String) |
Display Rhino's color selection dialog.
Namespace: Rhino.UI
Assembly: RhinoCommon (in RhinoCommon.dll)
public static bool ShowColorDialog( ref Color color, bool includeButtonColors, string dialogTitle )
Public Shared Function ShowColorDialog ( ByRef color As Color, includeButtonColors As Boolean, dialogTitle As String ) As Boolean
Parameters
- color
- Type: System.DrawingColor
[in/out] Default color for dialog, and will receive new color if function returns true. - includeButtonColors
- Type: SystemBoolean
Display button face and text options at top of named color list. - dialogTitle
- Type: SystemString
The title of the dialog.
Return Value
Type: Booleantrue if the color changed. false if the color has not changed or the user pressed cancel.