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

Describes a node in the structure that points to a property. More...

Inheritance diagram for NanoByte.StructureEditor.PropertyNode< TContainer, TProperty, TEditor >:
NanoByte.StructureEditor.Node

Public Member Functions

 PropertyNode (string name, TContainer container, PropertyPointer< TProperty?> pointer)
 Creates a new property 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 a property.

Template Parameters
TContainerThe type of the container containing the property.
TPropertyThe type of the property.
TEditorAn editor for modifying the content of the property.
Type Constraints
TContainer :class 
TProperty :class 
TEditor :INodeEditor<TProperty> 
TEditor :new() 

Constructor & Destructor Documentation

◆ PropertyNode()

NanoByte.StructureEditor.PropertyNode< TContainer, TProperty, TEditor >.PropertyNode ( string  name,
TContainer  container,
PropertyPointer< TProperty?>  pointer 
)
inline

Creates a new property node.

Parameters
nameThe name of the property.
containerThe container containing the property.
pointerA pointer to the property.

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