DiagramNode
ConsoleMonster.Widgets
One component. Its label is also its identity unless Id is explicitly set.
Inheritance
- object
- DiagramNode
Usage
Explore 36 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 16
- Property Diagram.Nodes
- Property DiagramGroup.Nodes
- Extension method DiagramNode.AddTo
- Extension method DiagramNode.Id
- Extension method DiagramNode.Kind
- Extension method DiagramNode.Label
- Extension method DiagramNode.Status
- Extension method DiagramNode.Subtitle
- Extension method DiagramNode.Value
- Method WidgetsFluent.AddTo
- Method WidgetsFluent.Id
- Method WidgetsFluent.Kind
- Method WidgetsFluent.Label
- Method WidgetsFluent.Status
- Method WidgetsFluent.Subtitle
- Method WidgetsFluent.Value
Accepted by parameters 20
- Extension method Diagram.AddNode
- Extension method Diagram.AddNodes
- Extension method DiagramGroup.AddNode
- Extension method DiagramGroup.AddNodes
- Extension method DiagramNode.AddTo
- Extension method DiagramNode.Id
- Extension method DiagramNode.Kind
- Extension method DiagramNode.Label
- Extension method DiagramNode.Status
- Extension method DiagramNode.Subtitle
- Extension method DiagramNode.Value
- Method WidgetsFluent.AddNode
- Method WidgetsFluent.AddNodes
- Method WidgetsFluent.AddTo
- Method WidgetsFluent.Id
- Method WidgetsFluent.Kind
- Method WidgetsFluent.Label
- Method WidgetsFluent.Status
- Method WidgetsFluent.Subtitle
- Method WidgetsFluent.Value
Constructors
Inherited Methods
Properties
public string Id { get; set; } #The connection and live-update key; defaults to Label.
public string? Subtitle { get; set; } #The second line, retained when a live value is present.
public StatusKind Status { get; set; } #The component's health. Omit it to show no status marker.
public List<string> To { get; } #Destination ids for unlabelled outgoing connections.
Extension Methods
public static DiagramNode AddTo(DiagramNode diagramNode, string item) #Adds an item to DiagramNode.To: Destination ids for unlabelled outgoing connections.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- item string
- The item.
public static DiagramNode AddTo(DiagramNode diagramNode, params string[] items) #Adds items to DiagramNode.To: Destination ids for unlabelled outgoing connections.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- items string[]
- The items, in order.
public static DiagramNode AddTo(DiagramNode diagramNode, IEnumerable<string> items) #Adds items to DiagramNode.To: Destination ids for unlabelled outgoing connections.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static DiagramNode Id(DiagramNode diagramNode, string value) #Sets DiagramNode.Id: The connection and live-update key; defaults to Label.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Id = value; diagramNode.Id(value);public static DiagramNode Kind(DiagramNode diagramNode, DiagramNodeKind value) #Sets DiagramNode.Kind: The component kind and icon.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value ConsoleMonster.Widgets.DiagramNodeKind
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Kind = value; diagramNode.Kind(value);public static DiagramNode Label(DiagramNode diagramNode, string value) #Sets DiagramNode.Label: The name on the first line.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Label = value; diagramNode.Label(value);public static DiagramNode Status(DiagramNode diagramNode, StatusKind value) #Sets DiagramNode.Status: The component's health. Omit it to show no status marker.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value ConsoleMonster.Styling.StatusKind
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Status = value; diagramNode.Status(value);public static DiagramNode Subtitle(DiagramNode diagramNode, string? value) #Sets DiagramNode.Subtitle: The second line, retained when a live value is present.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Subtitle = value; diagramNode.Subtitle(value);public static DiagramNode Value(DiagramNode diagramNode, string? value) #Sets DiagramNode.Value: The third line, independent of Subtitle.
Parameters
- diagramNode ConsoleMonster.Widgets.DiagramNode
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
diagramNode.Value = value; diagramNode.Value(value);