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
SystemObjectSystemMarshalByRefObject
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.7.0.1276
Syntax
C#
public sealed class CodeSetStyle : StyleBase, IEnumerable<CodeSetStyleItem>
VB
Public NotInheritable Class CodeSetStyle Inherits StyleBase Implements IEnumerable(Of CodeSetStyleItem)
C++
public ref class CodeSetStyle sealed : public StyleBase, IEnumerable<CodeSetStyleItem^>
The CodeSetStyle type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Application |
Gets the Application associated with the DBObject.
Not implemented.
(Inherited from DBObject) | |
| Count | Gets the code set item count. | |
| CreateBy | Gets or Sets the "Created by" string for the style. (Inherited from StyleBase) | |
| DateCreated | Gets the "Date created" string for the style. (Inherited from StyleBase) | |
| DateModified | Gets the "Date modified" string for the style. (Inherited from StyleBase) | |
| Description |
Gets or sets the description.
(Inherited from DBObject) | |
| Document |
Gets the Document associated with the DBObject.
Not implemented.
(Inherited from DBObject) | |
| IsUsed |
Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject) | |
| Item | ||
| ModifiedBy | Gets the "Modified by" string for the style. (Inherited from StyleBase) | |
| Name | Sets the "Name" string for the style. (Inherited from StyleBase) | |
| SubentityStyleType | Set the Corridor Style Type. |
Methods
| Name | Description | |
|---|---|---|
| Add | Add method. | |
| CopyAsSibling |
Copy the current style and add it to the parent node as a sibling.
(Inherited from StyleBase) | |
| ExportTo(Database, StyleConflictResolverType) |
Exports the current style to another drawing.
(Inherited from StyleBase) | |
| GetCurrentStyleSetId | Gets the ObjectId of the current CodeSetStyle. | |
| GetEnumerator | Get the enumerator of this collection. | |
| GetItemBy | Indexer. | |
| GetObjectEnumerator | Get the enumerator of this collection. | |
| Remove | Remove method. |
Example
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();
