Skip to content
ChartForgeX
Class

GraphNodeStyle

ChartForgeX.Interactivity

Namespace
ChartForgeX.Interactivity
Assembly
ChartForgeX.Interactivity
Modifiers
sealed
Attributes
Fluent

Describes adapter-neutral graph node styling hints, including common vis-network node option concepts.

Inheritance

  • object
  • GraphNodeStyle

Usage

Explore 23 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 10

Constructors

public GraphNodeStyle() #

Properties

public string? BackgroundColor { get; set; } #

Gets or sets the node fill color.

public string? BorderColor { get; set; } #

Gets or sets the node border color.

public string? LabelColor { get; set; } #

Gets or sets the node label color.

public string? LabelBackgroundColor { get; set; } #

Gets or sets an optional label background color.

public bool Shadow { get; set; } #

Gets or sets whether the adapter should render a node shadow when supported.

Extension Methods

public static GraphNodeStyle BackgroundColor(GraphNodeStyle graphNodeStyle, string? value) #

Sets GraphNodeStyle.BackgroundColor: Gets or sets the node fill color.

Parameters

graphNodeStyle ChartForgeX.Interactivity.GraphNodeStyle required
The instance.
value string? required
The value.

Returns

GraphNodeStyle The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Interactivity.GraphNodeStyle { BackgroundColor = value };    graphNodeStyle.BackgroundColor(value);
public static GraphNodeStyle BorderColor(GraphNodeStyle graphNodeStyle, string? value) #

Sets GraphNodeStyle.BorderColor: Gets or sets the node border color.

Parameters

graphNodeStyle ChartForgeX.Interactivity.GraphNodeStyle required
The instance.
value string? required
The value.

Returns

GraphNodeStyle The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Interactivity.GraphNodeStyle { BorderColor = value };    graphNodeStyle.BorderColor(value);
public static GraphNodeStyle LabelBackgroundColor(GraphNodeStyle graphNodeStyle, string? value) #

Sets GraphNodeStyle.LabelBackgroundColor: Gets or sets an optional label background color.

Parameters

graphNodeStyle ChartForgeX.Interactivity.GraphNodeStyle required
The instance.
value string? required
The value.

Returns

GraphNodeStyle The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::ChartForgeX.Interactivity.GraphNodeStyle { LabelBackgroundColor = value };    graphNodeStyle.LabelBackgroundColor(value);
public static GraphNodeStyle LabelColor(GraphNodeStyle graphNodeStyle, string? value) #

Sets GraphNodeStyle.LabelColor: Gets or sets the node label color.

Parameters

graphNodeStyle ChartForgeX.Interactivity.GraphNodeStyle required
The instance.
value string? required
The value.

Returns

GraphNodeStyle The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Interactivity.GraphNodeStyle { LabelColor = value };    graphNodeStyle.LabelColor(value);
public static GraphNodeStyle Shadow(GraphNodeStyle graphNodeStyle, bool value = true) #

Sets GraphNodeStyle.Shadow: Gets or sets whether the adapter should render a node shadow when supported.

Parameters

graphNodeStyle ChartForgeX.Interactivity.GraphNodeStyle required
The instance.
value bool = true optional
The value; true when omitted.

Returns

GraphNodeStyle The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Interactivity.GraphNodeStyle { Shadow = value };    graphNodeStyle.Shadow(value);