< Civ API Docs

StyleCollectionBase Methods

The StyleCollectionBase type exposes the following members.

Methods
 NameDescription
Public methodCode exampleAdd Creates a new style object, adds it to the collection, and returns an ObjectId for the object.
(Overrides TreeNodeCollectionBaseAdd(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.
(Overrides TreeNodeCollectionBaseRemove(Int32))
Public methodRemove(String) Removes a style by name from the collection.
(Overrides TreeNodeCollectionBaseRemove(String))
Public methodRemove(StyleBase)Obsolete.
Removes a style by Object from the collection.
Public methodToObjectIds Gets the objectId collection of all objects in this collection.
(Inherited from TreeNodeCollectionBase)
Top
See Also