NanoByte Structure Editor  0.4.10
WinForms library for building split-screen editors for data structures
NanoByte.StructureEditor.ListElementNode< TContainer, TList, TElement, TEditor > Class Template Reference

Describes a node in the structure that points to an element in the list. More...

Inheritance diagram for NanoByte.StructureEditor.ListElementNode< TContainer, TList, TElement, TEditor >:
NanoByte.StructureEditor.Node

Public Member Functions

 ListElementNode (string name, TContainer container, IList< TList > list, TElement element)
 Creates a new list element node. More...
 
override string GetSerialized ()
 Returns a serialized representation of the Target.
 
override? IValueCommand GetUpdateCommand (string serializedValue)
 Gets a command for updating the node's target with a new value.
 
override IUndoCommand GetRemoveCommand ()
 Gets a command for removing the node's target from the structure.
 
override INodeEditor GetEditorControl (ICommandExecutor executor)
 Gets a GUI control for editing the node's target.
 
- Public Member Functions inherited from NanoByte.StructureEditor.Node
override string ToString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from NanoByte.StructureEditor.Node
static ? string GetDescription< T > ()
 Gets the DescriptionAttribute.Description of T , if any. More...
 
- Protected Member Functions inherited from NanoByte.StructureEditor.Node
 Node (string nodeType, string? description, object? target)
 Creates a new node. More...
 
- Properties inherited from NanoByte.StructureEditor.Node
string NodeType [get]
 The name of the node type. More...
 
string? Description [get]
 A description of the node type. More...
 
object? Target [get]
 The object the node represents. More...
 

Detailed Description

Describes a node in the structure that points to an element in the list.

Template Parameters
TContainerThe type of the container containing the list.
TListThe type of elements in the list.
TElementThe type of a specific element type in the list.
TEditorAn editor for modifying the content of the element.
Type Constraints
TContainer :class 
TList :notnull 
TElement :class 
TElement :TList 
TEditor :INodeEditor<TElement> 
TEditor :new() 

Constructor & Destructor Documentation

◆ ListElementNode()

NanoByte.StructureEditor.ListElementNode< TContainer, TList, TElement, TEditor >.ListElementNode ( string  name,
TContainer  container,
IList< TList >  list,
TElement  element 
)
inline

Creates a new list element node.

Parameters
nameThe name of the element type.
containerThe container containing the list .
listThe list containing the element .
elementThe element in the list.

The documentation for this class was generated from the following file: