Used to control the visual style of a roadway link (Link) object.
Inheritance Hierarchy
SystemObjectSystemMarshalByRefObject
DisposableWrapper
RXObject
Drawable
DBObject
Autodesk.Civil.DatabaseServicesDBObject
Autodesk.Civil.DatabaseServices.StylesStyleBase
Autodesk.Civil.DatabaseServices.StylesSubassemblySubentityStyle
Autodesk.Civil.DatabaseServices.StylesLinkStyle
Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public sealed class LinkStyle : SubassemblySubentityStyle
VB
Public NotInheritable Class LinkStyle Inherits SubassemblySubentityStyle
C++
public ref class LinkStyle sealed : public SubassemblySubentityStyle
The LinkStyle type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Application |
Gets the Application associated with the DBObject.
Not implemented.
(Inherited from DBObject) | |
| 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) | |
| LinkDisplayStyleModel | Obsolete. Gets the DisplayStyle that specifies such Model display styles as color, linetype, plotstyle, etc. | |
| LinkDisplayStylePlan | Obsolete. Gets the DisplayStyle that specifies such Plan display styles as color, linetype, plotstyle, etc. | |
| ModifiedBy | Gets the "Modified by" string for the style. (Inherited from StyleBase) | |
| Name | Sets the "Name" string for the style. (Inherited from StyleBase) | |
| StyleType | (Overrides SubassemblySubentityStyleStyleType) |
Methods
| Name | Description | |
|---|---|---|
| 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) | |
| GetDisplayStyleModel | Gets the DisplayStyle that specifies such Model display styles as color, linetype, plotstyle, etc. | |
| GetDisplayStylePlan | Gets the DisplayStyle that specifies such Plan display styles as color, linetype, plotstyle, etc. | |
| GetDisplayStyleSection | Gets the DisplayStyle that specifies such Section display styles as color, linetype, plotstyle, etc. | |
| GetLinkDisplayStyleModel | Gets the DisplayStyle that specifies such Model display styles as color, linetype, plotstyle, etc. | |
| GetLinkDisplayStylePlan | Gets the DisplayStyle that specifies such Plan display styles as color, linetype, plotstyle, etc. |
Example
1// Add a new link style to the document: 2objId = doc.Styles.LinkStyles.Add("Style2"); 3LinkStyle oLinkStyle = ts.GetObject(objId, OpenMode.ForWrite) as LinkStyle; 4oLinkStyle.LinkDisplayStylePlan.Color = Color.FromColorIndex(ColorMethod.ByAci, 80); 5oLinkStyle.LinkDisplayStylePlan.Visible = true; 6 7ts.Commit();
