# GraphNodeStyle

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

 Class  

`ChartForgeX.Interactivity`

**Namespace**

`ChartForgeX.Interactivity`

**Assembly**

`ChartForgeX.Interactivity`

**Source**

[GraphStyleOptions.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L12)

**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.

### Returned or exposed by 13

- Extension method [GraphNodeStyle.BackgroundColor](/api/chartforgex-interactivity-graphnodestyle/#extension-backgroundcolor-chartforgex-interactivity-graphnodestyle-string)
- Extension method [GraphNodeStyle.BorderColor](/api/chartforgex-interactivity-graphnodestyle/#extension-bordercolor-chartforgex-interactivity-graphnodestyle-string)
- Extension method [GraphNodeStyle.LabelBackgroundColor](/api/chartforgex-interactivity-graphnodestyle/#extension-labelbackgroundcolor-chartforgex-interactivity-graphnodestyle-string)
- Extension method [GraphNodeStyle.LabelColor](/api/chartforgex-interactivity-graphnodestyle/#extension-labelcolor-chartforgex-interactivity-graphnodestyle-string)
- Extension method [GraphNodeStyle.Shadow](/api/chartforgex-interactivity-graphnodestyle/#extension-shadow-chartforgex-interactivity-graphnodestyle-boolean)
- Method [GraphNodeStyleFluent.BackgroundColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-backgroundcolor-chartforgex-interactivity-graphnodestyle-string)
- Method [GraphNodeStyleFluent.BorderColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-bordercolor-chartforgex-interactivity-graphnodestyle-string)
- Method [GraphNodeStyleFluent.LabelBackgroundColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-labelbackgroundcolor-chartforgex-interactivity-graphnodestyle-string)
- Method [GraphNodeStyleFluent.LabelColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-labelcolor-chartforgex-interactivity-graphnodestyle-string)
- Method [GraphNodeStyleFluent.Shadow](/api/chartforgex-interactivity-graphnodestylefluent/#method-shadow-chartforgex-interactivity-graphnodestyle-boolean)
- Property [GraphSceneNode.Style](/api/chartforgex-interactivity-graphscenenode/#property-style)
- Property [VisNetworkGroupOptions.Style](/api/chartforgex-interactivity-visnetworkgroupoptions/#property-style)
- Property [VisNetworkNode.Style](/api/chartforgex-interactivity-visnetworknode/#property-style)

### Accepted by parameters 10

- Extension method [GraphNodeStyle.BackgroundColor](/api/chartforgex-interactivity-graphnodestyle/#extension-backgroundcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Extension method [GraphNodeStyle.BorderColor](/api/chartforgex-interactivity-graphnodestyle/#extension-bordercolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Extension method [GraphNodeStyle.LabelBackgroundColor](/api/chartforgex-interactivity-graphnodestyle/#extension-labelbackgroundcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Extension method [GraphNodeStyle.LabelColor](/api/chartforgex-interactivity-graphnodestyle/#extension-labelcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Extension method [GraphNodeStyle.Shadow](/api/chartforgex-interactivity-graphnodestyle/#extension-shadow-chartforgex-interactivity-graphnodestyle-boolean) parameter `graphNodeStyle`
- Method [GraphNodeStyleFluent.BackgroundColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-backgroundcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Method [GraphNodeStyleFluent.BorderColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-bordercolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Method [GraphNodeStyleFluent.LabelBackgroundColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-labelbackgroundcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Method [GraphNodeStyleFluent.LabelColor](/api/chartforgex-interactivity-graphnodestylefluent/#method-labelcolor-chartforgex-interactivity-graphnodestyle-string) parameter `graphNodeStyle`
- Method [GraphNodeStyleFluent.Shadow](/api/chartforgex-interactivity-graphnodestylefluent/#method-shadow-chartforgex-interactivity-graphnodestyle-boolean) parameter `graphNodeStyle`

 Filter members   

    Show inherited   

 

## Constructors

 `public GraphNodeStyle()` [#](#constructor-ctor) 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string? BackgroundColor { get; set; }` [#](#property-backgroundcolor) 

[GraphStyleOptions.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L12)

Gets or sets the node fill color.

 `public string? BorderColor { get; set; }` [#](#property-bordercolor) 

[GraphStyleOptions.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L15)

Gets or sets the node border color.

 `public string? LabelColor { get; set; }` [#](#property-labelcolor) 

[GraphStyleOptions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L18)

Gets or sets the node label color.

 `public string? LabelBackgroundColor { get; set; }` [#](#property-labelbackgroundcolor) 

[GraphStyleOptions.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L21)

Gets or sets an optional label background color.

 `public bool Shadow { get; set; }` [#](#property-shadow) 

[GraphStyleOptions.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity/GraphStyleOptions.cs#L24)

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

## Extension Methods

 `public static GraphNodeStyle BackgroundColor(GraphNodeStyle graphNodeStyle, string? value)` [#](#extension-backgroundcolor-chartforgex-interactivity-graphnodestyle-string) 

Sets [GraphNodeStyle.BackgroundColor](/api/chartforgex-interactivity-graphnodestyle/): 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

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

 `public static GraphNodeStyle BorderColor(GraphNodeStyle graphNodeStyle, string? value)` [#](#extension-bordercolor-chartforgex-interactivity-graphnodestyle-string) 

Sets [GraphNodeStyle.BorderColor](/api/chartforgex-interactivity-graphnodestyle/): 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

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

 `public static GraphNodeStyle LabelBackgroundColor(GraphNodeStyle graphNodeStyle, string? value)` [#](#extension-labelbackgroundcolor-chartforgex-interactivity-graphnodestyle-string) 

Sets [GraphNodeStyle.LabelBackgroundColor](/api/chartforgex-interactivity-graphnodestyle/): 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

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

 `public static GraphNodeStyle LabelColor(GraphNodeStyle graphNodeStyle, string? value)` [#](#extension-labelcolor-chartforgex-interactivity-graphnodestyle-string) 

Sets [GraphNodeStyle.LabelColor](/api/chartforgex-interactivity-graphnodestyle/): 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

```csharp
// 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)` [#](#extension-shadow-chartforgex-interactivity-graphnodestyle-boolean) 

Sets [GraphNodeStyle.Shadow](/api/chartforgex-interactivity-graphnodestyle/): 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

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

<!-- PowerForge markdown artifact sha256:D62EE4728E20481B1D8B014B9333DBC9DA47BBBAD29FA2A4CE9B123A814157C3 -->
