ColorOptions Class


Color Options Class

A class providing access to color settings which affect the colors applied to specific views.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB ColorOptions

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ColorOptions : IDisposable

The ColorOptions type exposes the following members.

Properties
Name Description
Public property AlertColor The color of the current canvas theme used to highlight elements when a special alert is required.
Public property BackgroundColor The background color of the current canvas theme applied to views.
Public property CalculatingColor The color of the current canvas theme used to render elements when some aspect of their properties is currently being recalculated.
Public property EditingColor The color of the current canvas theme used to render elements when editing.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property PreselectionColor The color of the current canvas theme used to highlight candidates for selection before they are selected.
Public property SelectionColor The color of the current canvas theme used to highlight selected elements.
Public property SelectionSemitransparent Indicates whether or not selections will be shown in a semi-transparent manner in current canvas theme.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the ColorOptions
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method Static member GetColorOptions Returns the current Revit instance's ColorOptions.
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 ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
ColorOptions are managed and stored along with other global application options and thus impact the application as a whole.
See Also