Class Overview
Provides operations on windows of WindowClass type SysTreeView32.
Explanation
Constructor.
Parameter
src A WindowControl object for the target window.
Explanation
Constructor.
Parameters
app Application manipulation object. windowHandle Window handle.
public IntPtr[] Nodes{get;}
Explanation
Returns the item handles of the top-level nodes.
public IntPtr SelectedItem{get;}
Explanation
Returns the item handle of the selected item.
public void EmulateCancelEdit()
Explanation
Cancels editing.
Explanation
Cancels editing asynchronously. async Asynchronous execution object
Explanation
Parameter
item Item information.
Explanation
Parameters
item Item information. async Asynchronous execution object. public void EmulateCheck(IntPtr hItem, bool check)
Explanation
Parameters
hItem Item handle. check True to check.
Explanation
Return value
Success or failure.
Parameters
hItem Item handle. check True to check. async Asynchronous execution object.
public void EmulateEdit(IntPtr hItem, string text)
Explanation
Parameters
hItem Item handle. text Text to set.
Explanation
Parameters
hItem Item handle. text Text. async Asynchronous execution object.
public void EmulateExpand(IntPtr hItem, bool isExpanded)
Explanation
Parameters
hItem isExpandedItem handle. True to expand.
Explanation
Parameters
hItem isExpandedItem handle. True to expand. async Asynchronous execution object.
public void EmulateSelectItem(IntPtr hItem)
Explanation
Parameter
hItem Item handle.
Explanation
Parameters
hItem Item handle. async Asynchronous execution object.
public void EnsureVisible(IntPtr hItem)
Explanation
Parameter
hItem Item handle.
public IntPtr FindNode(params string[] nodeText)
Explanation
Searches for a node.
Return value
The item handle of the found node or IntPtr.Zero if it is not found.
Parameter
nodeText The text of each node
public IntPtr FindNode(params int[] nodeIndex)
Explanation
Searches for a node.
Return value
The item handle of the found node or IntPtr.Zero if it is not found.
Parameter
nodeIndexThe index of each node
public IntPtr[] GetBrotherNodes(IntPtr hItem)
Explanation
Returns sibling nodes of the indicated node.
Return value
The item handles of the nodes at the same level as the indicated node.
Parameter
hItem Item handle
public IntPtr[] GetChildNodes(IntPtr hParentItem)
Explanation
Returns the child nodes of the indicated node.
Return value
The item handles of the child nodes.
Parameter
hParentItem Parent item handle.
Explanation
Obtains item information
Return value
Success or failure.
Parameter
item Item information.
public IntPtr GetItemData(IntPtr hItem)
Explanation
Obtains item data for an indicated item.
Return value
Item data.
Parameter
hItem Item handle.
public Rectangle GetItemRect(IntPtr hItem, bool isTextOnly)
Explanation
Obtains an item's bounds.
Return value
Item boundary rectangle.
Parameters
hItem
True to obtain bounds of only the text portion .
public string GetItemText(IntPtr hItem)
Explanation
Obtains an item's text.
Return value
Item text.
Parameter
hItem Item handle.
public IntPtr GetParentNode(IntPtr hItem)
Explanation
Returns an item's parent node.
Return value
The item handle of the parent node
Parameter
hItem Item handle.
public bool IsChecked(IntPtr hItem)
Explanation
Returns the indicated item's check state.
Return value
True if checked, false if unchecked.
Parameter
hItem Item handle.
public bool IsExpanded(IntPtr hItem)
Explanation
Returns the indicated item's collapse/expand state.
Return value
True if the item is expanded, false if not.
Parameter
hItem Item handle. JR |