Skip to content
ChartForgeX
Class

TopologyLabels

ChartForgeX.Topology

Namespace
ChartForgeX.Topology
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Holds the words ChartForgeX writes into rendered topology diagrams on its own, so hosts can localize them, as ChartLabels does for charts. Defaults are English.

Inheritance

  • object
  • TopologyLabels

Usage

Explore 21 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.

Accepted by parameters 12

Constructors

public TopologyLabels() #

Properties

public string UntitledTopology { get; set; } #

Gets or sets the accessible name of a diagram without a title (the SVG title element and the HTML page title). Default ChartForgeX topology.

public Func<ChartDescriptionFacts, string?>? AccessibleTextFormatter { get; set; } #
Fluent("AccessibleTextBy")

Gets or sets a function that writes the automatic description (the SVG desc element) from its ChartDescriptionFacts, whose ChartDescriptionFacts.Kind is ChartDescriptionKind.Topology with the node, group, and edge counts. It takes the same facts as ChartLabels.AccessibleTextFormatter, so a host can use one formatter for charts and diagrams. Null (the default), or a function returning null or white space, writes ChartDescriptionFacts.EnglishText. A description set through Accessibility still wins and the function is not called for it. Exceptions thrown by the function are not caught; they surface from the render call.

public string UntitledReport { get; set; } #

Gets or sets the title of a topology report (TopologyReport) whose source diagram has no title; its pages add their number. Default Topology report.

public string HiddenDescendants { get; set; } #

Gets or sets the caption for a derived collapsed-descendant count in a hierarchy card.

Extension Methods

public static TopologyLabels AccessibleTextBy(TopologyLabels topologyLabels, Func<ChartDescriptionFacts, string?>? value) #

Sets TopologyLabels.AccessibleTextFormatter: Gets or sets a function that writes the automatic description (the SVG desc element) from its ChartDescriptionFacts, whose ChartDescriptionFacts.Kind is ChartDescriptionKind.Topology with the node, group, and edge counts. It takes the same facts as ChartLabels.AccessibleTextFormatter, so a host can use one formatter for charts and diagrams. Null (the default), or a function returning null or white space, writes ChartDescriptionFacts.EnglishText. A description set through Accessibility still wins and the function is not called for it. Exceptions thrown by the function are not caught; they surface from the render call.

Parameters

topologyLabels ChartForgeX.Topology.TopologyLabels required
The instance.
value System.Func<ChartForgeX.Core.ChartDescriptionFacts, string?>? required
The callback.

Returns

TopologyLabels The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Topology.TopologyLabels { AccessibleTextFormatter = value };    topologyLabels.AccessibleTextBy(value);
public static TopologyLabels HiddenDescendants(TopologyLabels topologyLabels, string value) #

Sets TopologyLabels.HiddenDescendants: Gets or sets the caption for a derived collapsed-descendant count in a hierarchy card.

Parameters

topologyLabels ChartForgeX.Topology.TopologyLabels required
The instance.
value string required
The value.

Returns

TopologyLabels The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Topology.TopologyLabels { HiddenDescendants = value };    topologyLabels.HiddenDescendants(value);
public static TopologyLabels UntitledReport(TopologyLabels topologyLabels, string value) #

Sets TopologyLabels.UntitledReport: Gets or sets the title of a topology report (TopologyReport) whose source diagram has no title; its pages add their number. Default Topology report.

Parameters

topologyLabels ChartForgeX.Topology.TopologyLabels required
The instance.
value string required
The value.

Returns

TopologyLabels The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyLabels { UntitledReport = value };    topologyLabels.UntitledReport(value);
public static TopologyLabels UntitledTopology(TopologyLabels topologyLabels, string value) #

Sets TopologyLabels.UntitledTopology: Gets or sets the accessible name of a diagram without a title (the SVG title element and the HTML page title). Default ChartForgeX topology.

Parameters

topologyLabels ChartForgeX.Topology.TopologyLabels required
The instance.
value string required
The value.

Returns

TopologyLabels The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Topology.TopologyLabels { UntitledTopology = value };    topologyLabels.UntitledTopology(value);