Share

AnalysisDisplayColorSettings Class

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: 26.1.0.0 (26.1.0.34)

Syntax

C#

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.

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.

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)

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

See Also

Reference

Was this information helpful?