Click or drag to resize

IProjectItemCollection Methods

The IProjectItemCollection type exposes the following members.

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
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