Interface ITreeNodeViewProvider
The tree node view provider is responsible for displaying a node in a ITreeViewComponent control.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface ITreeNodeViewProvider
Methods
| Improve this Doc View SourceBeforeDisplayingNode(ITreeStringNode, ITreeNodeView, Boolean, Boolean, Boolean)
Called before displaying the node view, and allows for changing the display based on the current state of the node.
Declaration
void BeforeDisplayingNode(ITreeStringNode item, ITreeNodeView nodeView, bool isCollapsed, bool isHovered, bool isSelected)
Parameters
Type | Name | Description |
---|---|---|
ITreeStringNode | item | Item. |
ITreeNodeView | nodeView | Node view. |
System.Boolean | isCollapsed | If set to |
System.Boolean | isHovered | If set to |
System.Boolean | isSelected | If set to |
CreateNode(ITreeStringNode, IRenderLayer, IObject)
Creates a UI view for the text node.
Declaration
ITreeNodeView CreateNode(ITreeStringNode node, IRenderLayer layer, IObject parent)
Parameters
Type | Name | Description |
---|---|---|
ITreeStringNode | node | The text node. |
IRenderLayer | layer | The rendering layer which all of the tree UI controls should use. |
IObject | parent | The parent for the node. |
Returns
Type | Description |
---|---|
ITreeNodeView | The node view. |