TopologyLegend
ChartForgeX.Topology
Represents an optional topology legend.
Inheritance
- object
- TopologyLegend
Usage
Explore 26 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 TopologyChart.Legend
- Extension method TopologyLegend.Item
- Extension method TopologyLegend.Items
- Extension method TopologyLegend.Title
- Method TopologyLegend.AddEdgeColor
- Method TopologyLegend.AddEdgeKind
- Method TopologyLegend.AddEvidence
- Method TopologyLegend.AddNodeKind
- Method TopologyLegend.AddStatus
- Method TopologyLegend.Create
- Method TopologyLegend.Default
- Method TopologyLegend.Infer
- Method TopologyLegend.Resolve
- Method TopologyLegendFluent.Item
- Method TopologyLegendFluent.Items
- Method TopologyLegendFluent.Title
Accepted by parameters 10
- Extension method TopologyChart.Legend
- Extension method TopologyChart.Legend
- Method TopologyChartFluent.Legend
- Method TopologyChartFluent.Legend
- Extension method TopologyLegend.Item
- Extension method TopologyLegend.Items
- Extension method TopologyLegend.Title
- Method TopologyLegendFluent.Item
- Method TopologyLegendFluent.Items
- Method TopologyLegendFluent.Title
Constructors
public TopologyLegend() #Methods
public TopologyLegend AddEdgeColor(string label, ChartColor color) #Adds an edge legend item for one colour, such as a stripe on multi-colour edges.
Parameters
- label string
- The item label.
- color ChartForgeX.Primitives.ChartColor
- The represented colour.
public TopologyLegend AddEdgeKind(string label, TopologyEdgeKind edgeKind, ChartColor? color = null, TopologyEdgeLineStyle lineStyle = Auto) #Adds an edge-kind legend item.
Parameters
- label string
- The item label.
- edgeKind ChartForgeX.Topology.TopologyEdgeKind
- The represented edge kind.
- color ChartForgeX.Primitives.ChartColor? = null
- An optional color override.
- lineStyle ChartForgeX.Topology.TopologyEdgeLineStyle = Auto
- An optional edge line style override.
public TopologyLegend AddEvidence(string label, TopologyEdgeEvidence evidence) #Adds an edge legend item for link evidence. Assumed links are drawn with the same short dash as the edges.
Parameters
- label string
- The item label.
- evidence ChartForgeX.Topology.TopologyEdgeEvidence
- The represented evidence.
public TopologyLegend AddNodeKind(string label, TopologyNodeKind nodeKind, ChartColor? color = null, string? symbol = null, ChartColor? backgroundColor = null, string? iconId = null) #Adds a node-kind legend item.
Parameters
- label string
- The item label.
- nodeKind ChartForgeX.Topology.TopologyNodeKind
- The represented node kind.
- color ChartForgeX.Primitives.ChartColor? = null
- An optional color override.
- symbol string? = null
- An optional short symbol override.
- backgroundColor ChartForgeX.Primitives.ChartColor? = null
- An optional node marker background color override.
- iconId string? = null
- An optional topology icon id for the legend marker.
public TopologyLegend AddStatus(string label, TopologyHealthStatus status, ChartColor? color = null) #Adds a status legend item.
Parameters
- label string
- The item label.
- status ChartForgeX.Topology.TopologyHealthStatus
- The represented status.
- color ChartForgeX.Primitives.ChartColor? = null
- An optional color override.
public static TopologyLegend Create(string? title = "Topology Legend") #Creates a new topology legend.
Parameters
- title string? = "Topology Legend"
- The optional legend title.
public static TopologyLegend Default() #Creates a generic default health legend.
public static TopologyLegend Infer(TopologyChart chart) #Infers a generic legend from statuses, node kinds, node symbols, and edge kinds used by the chart.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
public static TopologyLegend? Resolve(TopologyChart chart, TopologyLegendMode mode) #Resolves the legend according to the requested legend mode.
Parameters
- chart ChartForgeX.Topology.TopologyChart
- The topology chart.
- mode ChartForgeX.Topology.TopologyLegendMode
- The legend mode.
Inherited Methods
Properties
Extension Methods
public static TopologyLegend Item(TopologyLegend topologyLegend, TopologyLegendItem item) #Adds an item to TopologyLegend.Items: Gets the legend items.
Parameters
- topologyLegend ChartForgeX.Topology.TopologyLegend
- The instance.
- item ChartForgeX.Topology.TopologyLegendItem
- The item.
public static TopologyLegend Item(TopologyLegend topologyLegend, Action<TopologyLegendItem> configure) #Creates an item, configures it and adds it to TopologyLegend.Items: Gets the legend items.
Parameters
- topologyLegend ChartForgeX.Topology.TopologyLegend
- The instance.
- configure System.Action<ChartForgeX.Topology.TopologyLegendItem>
- Configures the new item before it is added.
public static TopologyLegend Items(TopologyLegend topologyLegend, IEnumerable<TopologyLegendItem> items) #Adds items to TopologyLegend.Items: Gets the legend items.
Parameters
- topologyLegend ChartForgeX.Topology.TopologyLegend
- The instance.
- items System.Collections.Generic.IEnumerable<ChartForgeX.Topology.TopologyLegendItem>
- The items, in order.
public static TopologyLegend Title(TopologyLegend topologyLegend, string? value) #Sets TopologyLegend.Title: Gets or sets the legend title.
Parameters
- topologyLegend ChartForgeX.Topology.TopologyLegend
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Topology.TopologyLegend { Title = value }; topologyLegend.Title(value);