Represents an item of the Windows shell namespace in a ShellTreeView.
| C# | Visual Basic | Visual C++ |
public class ShellTreeNode : TreeNode, IShellItem
Public Class ShellTreeNode _ Inherits TreeNode _ Implements IShellItem
public ref class ShellTreeNode : public TreeNode, IShellItem
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| ShellTreeNode(ItemIdList, String, ShellTreeNode, Boolean) |
Initializes a new instance of the ShellTreeNode class.
| |
| BackColor |
Gets or sets the background color of the tree node.
(Inherited from TreeNode.) | |
| BeginEdit()()() |
Initiates the editing of the tree node label.
(Inherited from TreeNode.) | |
| Bounds |
Gets the bounds of the tree node.
(Inherited from TreeNode.) | |
| Checked |
This property calls CheckState and
returns true only if the item is CheckState.Checked
and false if in CheckState.Grayed or CheckState.UnChecked.
| |
| CheckState |
If the CheckBoxes property of the ShellTreeView is true
then this property can be used to get or set the check state.
If the value that is set changes the item's checkstate, and a ShellControlConnector is
assigned to the ShellTreeView the item is contained in, the SelectionList
will be updated accordingly.
| |
| Clone()()() |
Copies the tree node and the entire subtree rooted at this tree node.
(Inherited from TreeNode.) | |
| Collapse(Boolean) |
Collapses the TreeNode and optionally collapses its children.
(Inherited from TreeNode.) | |
| Collapse()()() |
Collapses the tree node.
(Inherited from TreeNode.) | |
| ContextMenu |
Gets the shortcut menu associated with this tree node.
(Inherited from TreeNode.) | |
| ContextMenuStrip |
Gets or sets the shortcut menu associated with this tree node.
(Inherited from TreeNode.) | |
| CreateFolder(String) |
Creates a new Folder if the ShellListNode is a Folder;
may throw an Exception, see CreateDirectory(String) for the Exceptions that can occur
| |
| CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| Cut |
Defines if the item's image should be shown ghosted or not.
| |
| Deserialize(SerializationInfo, StreamingContext) |
Loads the state of the TreeNode from the specified SerializationInfo.
(Inherited from TreeNode.) | |
| EndEdit(Boolean) |
Ends the editing of the tree node label.
(Inherited from TreeNode.) | |
| EnsureVisible()()() |
Ensures that the tree node is visible, expanding tree nodes and scrolling the tree view control as necessary.
(Inherited from TreeNode.) | |
| Equals(Object) | (Inherited from Object.) | |
| Expand()()() |
Expands the tree node.
(Inherited from TreeNode.) | |
| ExpandAll()()() |
Expands all the child tree nodes.
(Inherited from TreeNode.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| FirstNode |
Gets the first child tree node in the tree node collection.
(Inherited from TreeNode.) | |
| ForeColor |
Gets or sets the foreground color of the tree node.
(Inherited from TreeNode.) | |
| FullPath |
Use to get the full path of this item.
| |
| GetChildNode(String) |
Returns subnode with the given caption.
| |
| GetDataObject()()() |
Returns the Windows Shell IDataObject interface for this object wrapped into an instance of type DataObject.
| |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetNodeCount(Boolean) |
Returns the number of child tree nodes.
(Inherited from TreeNode.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Handle |
Gets the handle of the tree node.
(Inherited from TreeNode.) | |
| HasChildren |
true, if this ShellTreeNode has subfolders; otherwise false.
| |
| ImageIndex |
Gets or sets the image list index value of the image displayed when the tree node is in the unselected state.
(Inherited from TreeNode.) | |
| ImageKey |
Gets or sets the key for the image associated with this tree node when the node is in an unselected state.
(Inherited from TreeNode.) | |
| Index |
Gets the position of the tree node in the tree node collection.
(Inherited from TreeNode.) | |
| InitializeLifetimeService()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| InvertCheckState()()() |
This method inverts the CheckState of the ShellTreeNode
instance. If the Item was checked it's state will be set to unchecked.
If it was Grayed or UnChecked it will be Checked afterwards.
If the Item is not associated (contained) in a ShellTreeView or
the ShellTreeView has no ShellControlConnector assigned,
this method does nothing and returns immediately.
Furthermore the TreeView needs to have the CheckBoxes property
enabled.
| |
| IsEditing |
Gets a value indicating whether the tree node is in an editable state.
(Inherited from TreeNode.) | |
| IsExpanded |
Gets a value indicating whether the tree node is in the expanded state.
(Inherited from TreeNode.) | |
| IsFolder |
true if the current item is a folder; otherwise false.
| |
| IsSelected |
Gets a value indicating whether the tree node is in the selected state.
(Inherited from TreeNode.) | |
| IsVisible |
Gets a value indicating whether the tree node is visible or partially visible.
(Inherited from TreeNode.) | |
| LastNode |
Gets the last child tree node.
(Inherited from TreeNode.) | |
| Level |
Gets the zero-based depth of the tree node in the TreeView control.
(Inherited from TreeNode.) | |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Name |
Gets or sets the name of the tree node.
(Inherited from TreeNode.) | |
| NextNode |
Gets the next sibling tree node.
(Inherited from TreeNode.) | |
| NextVisibleNode |
Gets the next visible tree node.
(Inherited from TreeNode.) | |
| NodeFont |
Gets or sets the font used to display the text on the tree node's label.
(Inherited from TreeNode.) | |
| Nodes |
Gets the collection of TreeNode objects assigned to the current tree node.
(Inherited from TreeNode.) | |
| OverlayImage |
The index of the overlay image in the system image list that should be shown in front of the normal icon.
This property will only be set if the ShowOverlayIcons property of ShowOverlayIcons is set to true.
| |
| Parent |
The parent ShellTreeNode, null if this is a root node.
| |
| PrevNode |
Gets the previous sibling tree node.
(Inherited from TreeNode.) | |
| PrevVisibleNode |
Gets the previous visible tree node.
(Inherited from TreeNode.) | |
| Refresh(Boolean) |
Refresh this ShellTreeNode.
| |
| RefreshCheckState()()() |
Refreshes the value of the CheckState CheckSate property.
| |
| RefreshCheckState(ShellTreeNode..::.RefreshDirection) |
Refreshes the value of the CheckState property recursively for
the given direction.
| |
| Remove()()() |
Removes the current tree node from the tree view control.
(Inherited from TreeNode.) | |
| Rename(String) |
Renames the file or folder that is referenced by this ShellTreeItem instance to the new
name given as a parameter.
| |
| SelectedImageIndex |
Gets or sets the image list index value of the image that is displayed when the tree node is in the selected state.
(Inherited from TreeNode.) | |
| SelectedImageKey |
Gets or sets the key of the image displayed in the tree node when it is in a selected state.
(Inherited from TreeNode.) | |
| Serialize(SerializationInfo, StreamingContext) |
Saves the state of the TreeNode to the specified SerializationInfo.
(Inherited from TreeNode.) | |
| SpecialFolder |
SpecialFolder allows you to get the type of the currently listed folder.
| |
| StateImageIndex |
Gets or sets the index of the image used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false.
(Inherited from TreeNode.) | |
| StateImageKey |
Gets or sets the key of the image used to indicate the state of the TreeNode when the parent TreeView has its CheckBoxes property set to false.
(Inherited from TreeNode.) | |
| Tag |
Gets or sets the object that contains data about the tree node.
(Inherited from TreeNode.) | |
| Text |
Gets or sets the text displayed in the label of the tree node.
(Inherited from TreeNode.) | |
| Toggle()()() |
Toggles the tree node to either the expanded or collapsed state.
(Inherited from TreeNode.) | |
| ToolTipText |
Gets or sets the text that appears when the mouse pointer hovers over a TreeNode.
(Inherited from TreeNode.) | |
| ToString()()() | (Inherited from TreeNode.) | |
| TreeView |
The ShellTreeView that contains this item.
|
| Object | |||
| MarshalByRefObject | |||
| TreeNode | |||
| ShellTreeNode | |||