AnalysisDisplayColorSettings
Contains color settings for analysis display style element.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Analysis.AnalysisDisplayColorSettings
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class AnalysisDisplayColorSettings : IDisposable
The AnalysisDisplayColorSettings type exposes the following members.
Constructors
Name
Description
Public Method
AnalysisDisplayColorSettings.
Constructs a default instance of color settings.
Public Method
AnalysisDisplayColorSettings(AnalysisDisplayColorSettings)
Constructs a new copy of the input AnalysisDisplayColorSettings object.
Properties
Name
Description
Public Property
ColorSettingsType
Stores type of color settings
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MaxColor
Color assigned to the maximum value.
Public Property
MinColor
Color assigned to the minimum value.
Methods
Name
Description
Public Method
AreIntermediateColorsValid
Verify intermediate color entries
Public Method
Colors
Get number of colors, including min, max and intermediate.
Public Method
Dispose
Releases all resources used by the AnalysisDisplayColorSettings
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
GetIntermediateColors
Get intermediate color entries (other than the minimum and maximum settings).
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
IsEqual
Compares two color settings objects.
Public Method
SetIntermediateColors
Set intermediate color entries (other than the minimum and maximum settings).
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Example
AnalysisDisplayColorSettings colorSettings = new AnalysisDisplayColorSettings();Color orange = new Color(255, 205, 0);Color purple = new Color(200, 0, 200);colorSettings.MaxColor = orange;colorSettings.MinColor = purple;