ClassElementNode
Represents an element node in the Element Explorer
Definition
Namespace:ArtOfTest.Common.Design.ProjectModel
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class ElementNode
Inheritance: objectElementNode
Constructors
ElementNode(INodeData, ElementDescriptor)
Create a new ElementNode.
Declaration
public ElementNode(INodeData node, ElementDescriptor descriptor)
Parameters
node
The node data.
descriptor
Fields
MAX_FRIENDLYNAME_LENGTH
Max length for a friendly name
Properties
AssociatedDescriptor
Gets the associated descriptor
Declaration
public ElementDescriptor AssociatedDescriptor { get; }
Property Value
Children
Gets the list of children.
Declaration
public ElementNodeCollection Children { get; }
Property Value
Depth
Gets or sets the depth of this node.
Name
Gets or sets the Friendly Name of this node.
NodeData
Gets the node data of this node.
Parent
Gets the parent.
Shadows
The shadow node data represented by this node.
Declaration
public Dictionary<ElementDescriptor, INodeData> Shadows { get; }
Property Value
VariableReference
Declaration
[Browsable(false)]
public CodeExpression VariableReference { get; set; }
Property Value
Methods
AddChild(ElementNode)
Add a child to this node.
Declaration
public ElementNode AddChild(ElementNode node)
Parameters
node
The child node
Returns
The child node added
AddShadow(INodeData, ElementDescriptor)
Adds a Shadow node to this node.
Declaration
public void AddShadow(INodeData node, ElementDescriptor descriptor)
Parameters
node
descriptor
Clone()
Clone this node.
Equals(object)
Determines if two ElementNode objects are equal.
GetElementDescriptor()
Get the element descriptor of this node. This method will always create a new ElementDescriptor object
Declaration
public ElementDescriptor GetElementDescriptor()
Returns
GetHashCode()
Returns the hashcode for this object.
GetParentElementOfKind<T>(int)
Gets the parent page Uri, else null
Declaration
public ElementNode GetParentElementOfKind<T>(int kind)
Parameters
kind
Returns
GetParentOfKind<T>(int)
Gets the parent page Uri, else null
InsertChild(int, ElementNode)
Add a child to this node.
Declaration
public ElementNode InsertChild(int index, ElementNode node)
Parameters
index
Insertion index
node
The child node
Returns
The child node added
OnReplaceNode(object, ElementNodeEventArgs)
Declaration
public void OnReplaceNode(object sender, ElementNodeEventArgs args)
Parameters
sender
args
RemoveByDescriptor(ElementDescriptor)
Remove the elements associated with the passed in descriptor instance.
Declaration
public void RemoveByDescriptor(ElementDescriptor descriptor)
Parameters
descriptor
RemoveSelfIfNeeded()
Remove the element node itself
Declaration
public void RemoveSelfIfNeeded()
SetIndependent(ElementDescriptor)
Declaration
public void SetIndependent(ElementDescriptor descriptor)
Parameters
descriptor
SetParent(ElementNode)
Set the parent of this node.
Declaration
public void SetParent(ElementNode parent)
Parameters
parent
The parent node
Events
ReplaceNode
Declaration
public event EventHandler<ElementNodeEventArgs> ReplaceNode
Event Value