ColorSelectionDialog Class


Color Selection Dialog Class

Allows display of the Revit Color dialog.
Inheritance Hierarchy
System Object
Autodesk.Revit.UI ColorSelectionDialog

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ColorSelectionDialog : IDisposable

The ColorSelectionDialog type exposes the following members.

Constructors
Name Description
Public method ColorSelectionDialog Default constructor.
Top
Properties
Name Description
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property OriginalColor The original color.
Public property SelectedColor The new color selected by the user.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the ColorSelectionDialog
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method Show Shows the Revit Color dialog as a modal dialog.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
The class provides the option to launch the Revit Color dialog to select the color.
See Also