[]
        
(Showing Draft Content)

C1.C1Preview.OwnedCollection

OwnedCollection Class

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.

Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class OwnedCollection : OwnedCollectionBase, IList, ICollection, IEnumerable

Constructors

Name Description
OwnedCollection()

Initializes a new instance of the OwnedCollection class.

OwnedCollection(ICollectionOwner)

Initializes a new instance of the OwnedCollection class.

Properties

Name Description
Owner

Gets the owner of collection.

Methods

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.