Profile |
The ProfileViewStyleCollection type exposes the following members.
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of objects in the collection.
(Inherited from TreeNodeCollectionBase) |
![]() | ItemInt32 | (Inherited from StyleCollectionBase) |
![]() | ItemString | (Inherited from StyleCollectionBase) |
Name | Description | |
---|---|---|
![]() | Add | (Overrides StyleCollectionBaseAdd(String)) |
![]() | Contains(ObjectId) |
Determines whether an element specified by ObjectId is in the collection.
(Inherited from TreeNodeCollectionBase) |
![]() | Contains(String) |
Determines whether an element is in the collection by its name.
(Inherited from TreeNodeCollectionBase) |
![]() | GetEnumerator |
Implements the method declared in the IEnumerable<T> interface. This method returns an enumerator for this collection.
(Inherited from TreeNodeCollectionBase) |
![]() | GetObjectEnumerator |
Implements the method declared in the IEnumerable interface. This method returns an enumerator for this collection.
(Inherited from TreeNodeCollectionBase) |
![]() | Remove(Int32) |
Removes a style by index from the collection.
(Inherited from StyleCollectionBase) |
![]() | Remove(String) |
Removes a style by name from the collection.
(Inherited from StyleCollectionBase) |
![]() | Remove(StyleBase) | Obsolete. Removes a style by Object from the collection. (Inherited from StyleCollectionBase) |
![]() | ToObjectIds |
Gets the objectId collection of all objects in this collection.
(Inherited from TreeNodeCollectionBase) |
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)]>";