CodeSetStyle Class

A collection of CodeSetStyleItem objects. CodeSetStyleItem defines a code and related style, where the style is the ObjectId of a LinkStyle or ShapeStyle.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Autodesk.Civil.DatabaseServicesDBObject
              Autodesk.Civil.DatabaseServices.StylesStyleBase
                Autodesk.Civil.DatabaseServices.StylesCodeSetStyle

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public sealed class CodeSetStyle : StyleBase, 
	IEnumerable<CodeSetStyleItem>

The CodeSetStyle type exposes the following members.

Properties
 NameDescription
Public propertyApplication Gets the Application associated with the DBObject. Not implemented.
(Inherited from DBObject)
Public propertyCount Gets the code set item count.
Public propertyCreateByGets or Sets the "Created by" string for the style.
(Inherited from StyleBase)
Public propertyDateCreatedGets the "Date created" string for the style.
(Inherited from StyleBase)
Public propertyDateModifiedGets the "Date modified" string for the style.
(Inherited from StyleBase)
Public propertyDescription Gets or sets the description.
(Inherited from DBObject)
Public propertyDocument Gets the Document associated with the DBObject. Not implemented.
(Inherited from DBObject)
Public propertyIsUsed Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject)
Public propertyItem 
Public propertyModifiedByGets the "Modified by" string for the style.
(Inherited from StyleBase)
Public propertyNameSets the "Name" string for the style.
(Inherited from StyleBase)
Public propertySubentityStyleType Set the Corridor Style Type.
Top
Methods
 NameDescription
Public methodAdd Add method.
Public methodCopyAsSibling Copy the current style and add it to the parent node as a sibling.
(Inherited from StyleBase)
Public methodExportTo(Database, StyleConflictResolverType) Exports the current style to another drawing.
(Inherited from StyleBase)
Public methodStatic memberGetCurrentStyleSetId Gets the ObjectId of the current CodeSetStyle.
Public methodGetEnumerator Get the enumerator of this collection.
Public methodGetItemBy Indexer.
Public methodGetObjectEnumerator Get the enumerator of this collection.
Public methodRemove Remove method.
Top
Example
C#
1// Create a new style set using our previously created styles.
2objId = doc.Styles.ShapeStyles.Add("Style Set 1");
3CodeSetStyle oCodeSetStyle = ts.GetObject(objId, OpenMode.ForWrite) as CodeSetStyle;
4oCodeSetStyle.Add("TOP", doc.Styles.LinkStyles["Style2"]);
5oCodeSetStyle.Add("BASE", doc.Styles.ShapeStyles["Style3"]);
6
7ts.Commit();
See Also