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