ProfileViewStyleCollection Class

The ProfileViewStyleCollection class.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    DisposableWrapper
      TreeOidWrapper
        Autodesk.Civil.DatabaseServicesTreeNodeCollectionBase
          Autodesk.Civil.DatabaseServices.StylesStyleCollectionBase
            Autodesk.Civil.DatabaseServices.StylesProfileViewStyleCollection

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public sealed class ProfileViewStyleCollection : StyleCollectionBase

The ProfileViewStyleCollection type exposes the following members.

Properties
 NameDescription
Public propertyCount Gets the number of objects in the collection.
(Inherited from TreeNodeCollectionBase)
Public propertyItemInt32
(Inherited from StyleCollectionBase)
Public propertyItemString
(Inherited from StyleCollectionBase)
Top
Methods
 NameDescription
Public methodAdd
(Overrides StyleCollectionBaseAdd(String))
Public methodContains(ObjectId) Determines whether an element specified by ObjectId is in the collection.
(Inherited from TreeNodeCollectionBase)
Public methodContains(String) Determines whether an element is in the collection by its name.
(Inherited from TreeNodeCollectionBase)
Public methodGetEnumerator Implements the method declared in the IEnumerable<T> interface. This method returns an enumerator for this collection.
(Inherited from TreeNodeCollectionBase)
Public methodGetObjectEnumerator Implements the method declared in the IEnumerable interface. This method returns an enumerator for this collection.
(Inherited from TreeNodeCollectionBase)
Public methodRemove(Int32) Removes a style by index from the collection.
(Inherited from StyleCollectionBase)
Public methodRemove(String) Removes a style by name from the collection.
(Inherited from StyleCollectionBase)
Public methodRemove(StyleBase)Obsolete.
Removes a style by Object from the collection.
(Inherited from StyleCollectionBase)
Public methodToObjectIds Gets the objectId collection of all objects in this collection.
(Inherited from TreeNodeCollectionBase)
Top
Example
C#
 1// Get the first style in the document's collection of styles
 2
 3ObjectId profileViewStyleId = doc.Styles.ProfileViewStyles[0];
 4ProfileViewStyle oProfileViewStyle = ts.GetObject(profileViewStyleId, OpenMode.ForRead) as ProfileViewStyle;
 5
 6// Adjust the top axis.  Put station information here, with the title 
 7// at the far left.
 8oProfileViewStyle.GetDisplayStylePlan(ProfileViewDisplayStyleType.TopAxis).Visible = true;
 9oProfileViewStyle.TopAxis.MajorTickStyle.LabelText = "<[Station Value(Um|FD|P1)]> m";
10oProfileViewStyle.TopAxis.MajorTickStyle.Interval = 164.041995;
11oProfileViewStyle.TopAxis.TitleStyle.OffsetX = 0.13;
12oProfileViewStyle.TopAxis.TitleStyle.OffsetY = 0.0;
13oProfileViewStyle.TopAxis.TitleStyle.Text = "Meters";
14oProfileViewStyle.TopAxis.TitleStyle.Location = Autodesk.Civil.DatabaseServices.Styles.AxisTitleLocationType.TopOrLeft;
15
16// Adjust the title to show the alignment name
17oProfileViewStyle.GraphStyle.TitleStyle.Text = "Profile View of:<[Parent Alignment(CP)]>";
See Also