Code |
The CodeSetStyle type exposes the following members.
| 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. |
| 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. |
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();