[]
Describes a collection with an owner. Base class for RenderObjectCollection and ParagraphObjectCollection. Additional to OwnedCollectionBase updates Owner property of items if they supports C1.C1Preview.IOwnedCollectionItem interface.
public class OwnedCollection : OwnedCollectionBase, IList, ICollection, IEnumerable
Name | Description |
---|---|
OwnedCollection() | Initializes a new instance of the OwnedCollection class. |
OwnedCollection(ICollectionOwner) | Initializes a new instance of the OwnedCollection class. |
Name | Description |
---|---|
Owner | Gets the owner of collection. |
Name | Description |
---|---|
GetItemType() | Gets the type of items in the collection. If this method returns null, items of different types can be added to the collection. Otherwise, only items of the type this method returns can be added. |
OnClear() | Called when the collection is about to be cleared. |
OnInsert(int, object) | Called when an item is about to be iserted. |
OnInsertComplete(int, object) | Called after an item has been inserted. |
OnRemoveComplete(int, object) | Called after an item has been removed. |
OnSet(int, object, object) | Called when an item is about to be set. |
OnSetComplete(int, object, object) | Called after an item has been set. |