Factory method - creates analysis display style object of type Colored Surface for the given document. 
   Namespace:   Autodesk.Revit.DB.Analysis  
  Assembly:   RevitAPI  (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0) 
  Since:  2011 
Syntax
| C# | 
|---|
   |  
| Visual Basic | 
|---|
   |  
| Visual C++ | 
|---|
   |  
Parameters
- document
 -  Type:  Autodesk.Revit.DB Document  
Document for which analysis display style object is created. 
- name
 -  Type:  System String  
Name of the analysis display style within the %document%. 
- coloredSurfaceSettings
 -  Type:  Autodesk.Revit.DB.Analysis AnalysisDisplayColoredSurfaceSettings  
Colored surface settings for the style. 
- colorSettings
 -  Type:  Autodesk.Revit.DB.Analysis AnalysisDisplayColorSettings  
Color settings for the style. 
- legendSettings
 -  Type:  Autodesk.Revit.DB.Analysis AnalysisDisplayLegendSettings  
Legend settings for the style. 
Return Value
New analysis display style object.Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was null | 
| Autodesk.Revit.Exceptions ArgumentsInconsistentException | document is a family. -or- name is not unique in document. |