The ProfileViewStyleCollection class.

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

Syntax

C#
public sealed class ProfileViewStyleCollection : StyleCollectionBase
Visual Basic
Public NotInheritable Class ProfileViewStyleCollection _
	Inherits StyleCollectionBase
Visual C++
public ref class ProfileViewStyleCollection sealed : public StyleCollectionBase

Examples

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

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    DisposableWrapper
      TreeOidWrapper
        Autodesk.Civil.DatabaseServices.Styles..::..StyleCollectionBase
          Autodesk.Civil.DatabaseServices.Styles..::..ProfileViewStyleCollection

See Also