2027 Class
Changes 0
C

AnalysisDisplayMarkersAndTextSettings

Description:
Contains markers and text settings for analysis display style element.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Analysis.AnalysisDisplayMarkersAndTextSettings
public class AnalysisDisplayMarkersAndTextSettings : IDisposable
// Settings relating to the marker shape and size and the display of values
AnalysisDisplayMarkersAndTextSettings markerSettings = new AnalysisDisplayMarkersAndTextSettings();
markerSettings.MarkerSize = .05;
markerSettings.MarkerType = AnalysisDisplayStyleMarkerType.Triangle;
markerSettings.Rounding = .01;

// Settings relating to the marker color
AnalysisDisplayColorSettings colorSettings = new AnalysisDisplayColorSettings();
colorSettings.MaxColor = new Color(255, 0, 0);
colorSettings.MinColor = new Color(0, 255, 255);

// Settings relating to the legend
AnalysisDisplayLegendSettings legendSettings = new AnalysisDisplayLegendSettings();
legendSettings.Rounding = .01;

// Create the new display style
AnalysisDisplayStyle ads = AnalysisDisplayStyle.CreateAnalysisDisplayStyle(doc, "Markers 1", markerSettings, colorSettings, legendSettings);

// Assign the new display style to the current view
doc.ActiveView.AnalysisDisplayStyleId = ads.Id;
Name Return Type Description Inherited From
C AnalysisDisplayMarkersAndTextSettings() None Constructs a default instance of markers and text settings.
C AnalysisDisplayMarkersAndTextSettings(AnalysisDisplayMarkersAndTextSettings) None Constructs a new copy of the input AnalysisDisplayMarkersAndTextSettings object.
Name Return Type Description Inherited From
M Dispose() None Releases all resources used by the AnalysisDisplayMarkersAndTextSettings
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M IsEqual(AnalysisDisplayMarkersAndTextSettings) Boolean Compares two colored surface settings objects.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P MarkerSize double Size of marker.
P MarkerType AnalysisDisplayStyleMarkerType Type of marker.
P Rounding double Increment to which numeric values of analysis results are rounded in markers.
P TextLabelType AnalysisDisplayStyleMarkerTextLabelType Type of diagram text label visualization.
P TextTypeId ElementId Element id of text associated with the settings.