AnalysisDisplayColorSettings Class

Contains color settings for analysis display style element.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.AnalysisAnalysisDisplayColorSettings

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
 NameDescription
Public methodAnalysisDisplayColorSettings Constructs a default instance of color settings.
Public methodAnalysisDisplayColorSettings(AnalysisDisplayColorSettings) Constructs a new copy of the input AnalysisDisplayColorSettings object.
Top
Properties
 NameDescription
Public propertyColorSettingsType Stores type of color settings
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyMaxColor Color assigned to the maximum value.
Public propertyMinColor Color assigned to the minimum value.
Top
Methods
 NameDescription
Public methodAreIntermediateColorsValid Verify intermediate color entries
Public methodColors Get number of colors, including min, max and intermediate.
Public methodDisposeReleases all resources used by the AnalysisDisplayColorSettings
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetIntermediateColors Get intermediate color entries (other than the minimum and maximum settings).
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsEqual Compares two color settings objects.
Public methodSetIntermediateColors Set intermediate color entries (other than the minimum and maximum settings).
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
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;
See Also