A collection of CodeSetStyleItem objects. CodeSetStyleItem defines a code and related style, where the style is the ObjectId of a LinkStyle or ShapeStyle.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public sealed class CodeSetStyle : StyleBase, 
	IEnumerable<CodeSetStyleItem>
Visual Basic
Public NotInheritable Class CodeSetStyle _
	Inherits StyleBase _
	Implements IEnumerable(Of CodeSetStyleItem)
Visual C++
public ref class CodeSetStyle sealed : public StyleBase, 
	IEnumerable<CodeSetStyleItem^>

Examples

CopyC#
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();

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Autodesk.Civil.DatabaseServices..::..DBObject
              Autodesk.Civil.DatabaseServices.Styles..::..StyleBase
                Autodesk.Civil.DatabaseServices.Styles..::..CodeSetStyle

See Also