Click or drag to resize

IProjectItemCollection Interface

Interface that all collections that store Altaxo project items must support.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public interface IProjectItemCollection : IParentOfINameOwnerChildNodes, 
	INamedObjectCollection, IDocumentNode, IDocumentLeafNode, INamedObject, IChangedEventSource, 
	ISuspendableByToken, ITunnelingEventSource, IDisposable, ITreeNodeWithParent<IDocumentLeafNode>, 
	ITreeNode<IDocumentLeafNode>, INodeWithParentNode<IDocumentLeafNode>, IChildChangedEventSink

The IProjectItemCollection type exposes the following members.

Properties
 NameDescription
Public propertyChildNodes Gets the child nodes.
(Inherited from ITreeNodeT)
Public propertyIsDisposed Gets a value indicating whether this instance is disposed.
(Inherited from IDocumentLeafNode)
Public propertyIsDisposeInProgress Gets a value indicating whether this instance is dispose in progress, or the instance is already disposed.
(Inherited from IDocumentLeafNode)
Public propertyIsSuspended Gets a value indicating whether this instance is suspended.
(Inherited from ISuspendableByToken)
Public propertyItem Gets the IProjectItem with the specified project item name.
Public propertyItemBaseName Gets the base name of a project item. The base name will be combined with a number to find a unique name.
Public propertyName Gets the name of this instance. An InvalidOperationException will be thrown if the name is not yet set or can not be retrieved.
(Inherited from INamedObject)
Public propertyParentNode Gets the parent node of this node.
(Inherited from INodeWithParentNodeT)
Public propertyParentObject Retrieves the parent object.
(Inherited from IDocumentLeafNode)
Public propertyProjectItems Enumerates all project items in the collection.
Top
Methods
 NameDescription
Public methodAdd Adds the specified project item to the collection.
Public methodContains Determines whether the collection contains a project item with the specified name and with the type that this collection stores.
Public methodContainsAnyName Determines whether the collection contains any project item with the specified name. This must not neccessarily a item of the type that this collection stores (some collections can have a shared name dictionary). In constrast, use Contains(String) to determine if the collection contains an item with the specified name and the native type that the collection stores.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodEhChild_CanBeRenamed Determines whether the name of the child item can be changed to the provided new name. If the parent implementing this interface is not able to change the child's name, it must return false.
(Inherited from IParentOfINameOwnerChildNodes)
Public methodEhChild_HasBeenRenamed Called if the child has been renamed.
(Inherited from IParentOfINameOwnerChildNodes)
Public methodEhChild_ParentChanged Called if the child's parent changed.
(Inherited from IParentOfINameOwnerChildNodes)
Public methodEhChildChanged This function is used by the childs of an object to signal an parent object that they have changed. If the function returns true, the child have to suspend it's change notifications (if this is supported by the child).
(Inherited from IChildChangedEventSink)
Public methodEhParentTunnelingEventHappened
(Inherited from IDocumentLeafNode)
Public methodFindNewItemName Looks for the next free standard project item name in the root folder.
Public methodFindNewItemName(String) Looks for the next unique project item name base on a basic name.
Public methodFindNewItemNameInFolder Looks for the next free standard project item name in the specified folder.
Public methodGetChildObjectNamed retrieves the object with the name
C#
name
.
(Inherited from INamedObjectCollection)
Public methodGetNameOfChildObject Retrieves the name of the provided object.
(Inherited from INamedObjectCollection)
Public methodRemove(IProjectItem) Removes the specified project item.
Public methodRemove(String) Removes the project item with the specified name.
Public methodRenameChild Helper function called by a child of this collection to handle renaming of this child.
(Inherited from IParentOfINameOwnerChildNodes)
Public methodSetDisposeInProgress Sets the flag that dispose is in progress for this node and all child nodes recursively.
(Inherited from IDocumentLeafNode)
Public methodSuspendGetToken Suspends the event handling of the object by getting a suspend token. The event handling of the object is resumed when the suspend token is disposed.
(Inherited from ISuspendableByToken)
Public methodTryGetName Test if this item already has a name.
(Inherited from INamedObject)
Public methodTryGetValue Try to get a project item by name
Top
Events
 NameDescription
Public eventChangedFired when something in the object has changed.
(Inherited from IChangedEventSource)
Public eventCollectionChanged Fired when one or more project items are added, deleted or renamed. Not fired when content in the project item has changed. Arguments are the type of change, the item that changed, the old name (if renamed), and the new name (if renamed). This event can not be suspended.
Public eventTunneledEvent The event that is fired when the object is disposed. First argument is the sender, second argument is the original source, and third argument is the event arg.
(Inherited from ITunnelingEventSource)
Top
Extension Methods
 NameDescription
Public Extension MethodGetPropertyContext Gets the property context of the document node. If the provided node is not implementing IPropertyBagOwner, the parent nodes of this node are searched, until a node which implements IPropertyBagOwner is found.
(Defined by PropertyExtensions)
Top
See Also