# TopologyIconArtwork

Describes optional external artwork for a topology icon.

 Class  

`ChartForgeX.Topology`

**Namespace**

`ChartForgeX.Topology`

**Assembly**

`ChartForgeX`

**Source**

[TopologyIconArtwork.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L17)

**Modifiers**

sealed

**Attributes**

 `Fluent` 

Describes optional external artwork for a topology icon.

## Inheritance

- object
- TopologyIconArtwork

## Usage

 Explore 50 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 20

- Property [TopologyHierarchyItem.Artwork](/api/chartforgex-topology-topologyhierarchyitem/#property-artwork)
- Extension method [TopologyIconArtwork.ImageHref](/api/chartforgex-topology-topologyiconartwork/#extension-imagehref-chartforgex-topology-topologyiconartwork-string)
- Extension method [TopologyIconArtwork.PreserveAspectRatio](/api/chartforgex-topology-topologyiconartwork/#extension-preserveaspectratio-chartforgex-topology-topologyiconartwork-string)
- Extension method [TopologyIconArtwork.PreviewPath](/api/chartforgex-topology-topologyiconartwork/#extension-previewpath-chartforgex-topology-topologyiconartwork-string)
- Extension method [TopologyIconArtwork.SvgBody](/api/chartforgex-topology-topologyiconartwork/#extension-svgbody-chartforgex-topology-topologyiconartwork-string)
- Extension method [TopologyIconArtwork.SvgPath](/api/chartforgex-topology-topologyiconartwork/#extension-svgpath-chartforgex-topology-topologyiconartwork-string)
- Extension method [TopologyIconArtwork.SvgViewBox](/api/chartforgex-topology-topologyiconartwork/#extension-svgviewbox-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtwork.Image](/api/chartforgex-topology-topologyiconartwork/#method-image-string-string)
- Method [TopologyIconArtwork.InlineSvg](/api/chartforgex-topology-topologyiconartwork/#method-inlinesvg-string-string)
- Method [TopologyIconArtwork.Portrait](/api/chartforgex-topology-topologyiconartwork/#method-portrait-chartforgex-raster-rgbaimage-chartforgex-topology-topologyportraitfit)
- Method [TopologyIconArtwork.SvgFile](/api/chartforgex-topology-topologyiconartwork/#method-svgfile-string-string-string)
- Method [TopologyIconArtworkFluent.ImageHref](/api/chartforgex-topology-topologyiconartworkfluent/#method-imagehref-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtworkFluent.PreserveAspectRatio](/api/chartforgex-topology-topologyiconartworkfluent/#method-preserveaspectratio-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtworkFluent.PreviewPath](/api/chartforgex-topology-topologyiconartworkfluent/#method-previewpath-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtworkFluent.SvgBody](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgbody-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtworkFluent.SvgPath](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgpath-chartforgex-topology-topologyiconartwork-string)
- Method [TopologyIconArtworkFluent.SvgViewBox](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgviewbox-chartforgex-topology-topologyiconartwork-string)
- Property [TopologyIconDefinition.Artwork](/api/chartforgex-topology-topologyicondefinition/#property-artwork)
- Property [TopologyNode.Artwork](/api/chartforgex-topology-topologynode/#property-artwork)
- Property [TopologyTeamMember.Artwork](/api/chartforgex-topology-topologyteammember/#property-artwork)

### Accepted by parameters 30

- Extension method [TopologyChart.AddArtworkNode](/api/chartforgex-topology-topologychart/#extension-addartworknode-chartforgex-topology-topologychart-string-string-chartforgex-topology-topologyiconartwork-double-double-chartforgex-topology-topologynodekind-chartforgex-topology-topologyhealthstatus-string-string-string-string-double-double-string-string-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-primitives-chartcolor-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Extension method [TopologyChart.AddAutoArtworkNode](/api/chartforgex-topology-topologychart/#extension-addautoartworknode-chartforgex-topology-topologychart-string-string-chartforgex-topology-topologyiconartwork-chartforgex-topology-topologynodekind-chartforgex-topology-topologyhealthstatus-string-string-string-string-double-double-string-string-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-primitives-chartcolor-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Extension method [TopologyChart.NodeArtwork](/api/chartforgex-topology-topologychart/#extension-nodeartwork-chartforgex-topology-topologychart-string-chartforgex-topology-topologyiconartwork-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Method [TopologyChartExtensions.AddArtworkNode](/api/chartforgex-topology-topologychartextensions/#method-addartworknode-chartforgex-topology-topologychart-string-string-chartforgex-topology-topologyiconartwork-double-double-chartforgex-topology-topologynodekind-chartforgex-topology-topologyhealthstatus-string-string-string-string-double-double-string-string-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-primitives-chartcolor-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Method [TopologyChartExtensions.AddAutoArtworkNode](/api/chartforgex-topology-topologychartextensions/#method-addautoartworknode-chartforgex-topology-topologychart-string-string-chartforgex-topology-topologyiconartwork-chartforgex-topology-topologynodekind-chartforgex-topology-topologyhealthstatus-string-string-string-string-double-double-string-string-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-primitives-chartcolor-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Method [TopologyChartExtensions.NodeArtwork](/api/chartforgex-topology-topologychartextensions/#method-nodeartwork-chartforgex-topology-topologychart-string-chartforgex-topology-topologyiconartwork-chartforgex-topology-topologynodedisplaymode) parameter `artwork`
- Extension method [TopologyHierarchyItem.Artwork](/api/chartforgex-topology-topologyhierarchyitem/#extension-artwork-chartforgex-topology-topologyhierarchyitem-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Extension method [TopologyHierarchyItem.Artwork](/api/chartforgex-topology-topologyhierarchyitem/#extension-artwork-chartforgex-topology-topologyhierarchyitem-chartforgex-topology-topologyiconartwork) parameter `value`
- Method [TopologyHierarchyItemFluent.Artwork](/api/chartforgex-topology-topologyhierarchyitemfluent/#method-artwork-chartforgex-topology-topologyhierarchyitem-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Method [TopologyHierarchyItemFluent.Artwork](/api/chartforgex-topology-topologyhierarchyitemfluent/#method-artwork-chartforgex-topology-topologyhierarchyitem-chartforgex-topology-topologyiconartwork) parameter `value`
- Extension method [TopologyIconArtwork.ImageHref](/api/chartforgex-topology-topologyiconartwork/#extension-imagehref-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconArtwork.PreserveAspectRatio](/api/chartforgex-topology-topologyiconartwork/#extension-preserveaspectratio-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconArtwork.PreviewPath](/api/chartforgex-topology-topologyiconartwork/#extension-previewpath-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconArtwork.SvgBody](/api/chartforgex-topology-topologyiconartwork/#extension-svgbody-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconArtwork.SvgPath](/api/chartforgex-topology-topologyiconartwork/#extension-svgpath-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconArtwork.SvgViewBox](/api/chartforgex-topology-topologyiconartwork/#extension-svgviewbox-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.ImageHref](/api/chartforgex-topology-topologyiconartworkfluent/#method-imagehref-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.PreserveAspectRatio](/api/chartforgex-topology-topologyiconartworkfluent/#method-preserveaspectratio-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.PreviewPath](/api/chartforgex-topology-topologyiconartworkfluent/#method-previewpath-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.SvgBody](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgbody-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.SvgPath](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgpath-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Method [TopologyIconArtworkFluent.SvgViewBox](/api/chartforgex-topology-topologyiconartworkfluent/#method-svgviewbox-chartforgex-topology-topologyiconartwork-string) parameter `topologyIconArtwork`
- Extension method [TopologyIconDefinition.Artwork](/api/chartforgex-topology-topologyicondefinition/#extension-artwork-chartforgex-topology-topologyicondefinition-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Extension method [TopologyIconDefinition.Artwork](/api/chartforgex-topology-topologyicondefinition/#extension-artwork-chartforgex-topology-topologyicondefinition-chartforgex-topology-topologyiconartwork) parameter `value`
- Method [TopologyIconDefinitionFluent.Artwork](/api/chartforgex-topology-topologyicondefinitionfluent/#method-artwork-chartforgex-topology-topologyicondefinition-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Method [TopologyIconDefinitionFluent.Artwork](/api/chartforgex-topology-topologyicondefinitionfluent/#method-artwork-chartforgex-topology-topologyicondefinition-chartforgex-topology-topologyiconartwork) parameter `value`
- Extension method [TopologyNode.Artwork](/api/chartforgex-topology-topologynode/#extension-artwork-chartforgex-topology-topologynode-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Extension method [TopologyNode.Artwork](/api/chartforgex-topology-topologynode/#extension-artwork-chartforgex-topology-topologynode-chartforgex-topology-topologyiconartwork) parameter `value`
- Method [TopologyNodeFluent.Artwork](/api/chartforgex-topology-topologynodefluent/#method-artwork-chartforgex-topology-topologynode-action-chartforgex-topology-topologyiconartwork) parameter `configure`
- Method [TopologyNodeFluent.Artwork](/api/chartforgex-topology-topologynodefluent/#method-artwork-chartforgex-topology-topologynode-chartforgex-topology-topologyiconartwork) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

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

[TopologyIconArtwork.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L17)

## Methods

 `public static TopologyIconArtwork Image(string href, string svgViewBox = "0 0 24 24")` [#](#method-image-string-string) 

[TopologyIconArtwork.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L60)

Creates image artwork.

Parameters

**href string required**

**svgViewBox string = "0 0 24 24" optional**

Returns

 `TopologyIconArtwork` 

 `public static TopologyIconArtwork InlineSvg(string svgBody, string svgViewBox = "0 0 24 24")` [#](#method-inlinesvg-string-string) 

[TopologyIconArtwork.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L52)

Creates inline SVG artwork.

Parameters

**svgBody string required**

**svgViewBox string = "0 0 24 24" optional**

Returns

 `TopologyIconArtwork` 

 `public static bool IsSafeAssetPath(string? path)` [#](#method-issafeassetpath-string) 

[TopologyIconArtwork.cs:125](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L125)

Returns whether an artwork path is safe enough for pack-local file resolution.

Parameters

**path string? required**

Returns

 `bool` 

 `public static bool IsSafeImageHref(string? href)` [#](#method-issafeimagehref-string) 

[TopologyIconArtwork.cs:117](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L117)

Returns whether an image href is safe enough for report embedding.

Parameters

**href string? required**

Returns

 `bool` 

 `public static bool IsSafeSvgFragment(string? svgBody)` [#](#method-issafesvgfragment-string) 

[TopologyIconArtwork.cs:79](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L79)

Returns whether an inline SVG fragment is safe enough for report embedding.

Parameters

**svgBody string? required**

Returns

 `bool` 

 `public static TopologyIconArtwork Portrait(RgbaImage image, TopologyPortraitFit fit = Slice)` [#](#method-portrait-chartforgex-raster-rgbaimage-chartforgex-topology-topologyportraitfit) 

[TopologyIconArtwork.Portrait.cs:14](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.Portrait.cs#L14)

Captures an RGBA portrait as deterministic embedded artwork for native raster and SVG output.

Parameters

**image ChartForgeX.Raster.RgbaImage required**

The complete source image. Its pixels are read only during this call.

**fit ChartForgeX.Topology.TopologyPortraitFit = Slice optional**

The centered slot fit. Slice fills the existing artwork slot without changing node geometry.

Returns

 `TopologyIconArtwork` Independent artwork; changing the caller's pixel array does not change its image. 

 `public static TopologyIconArtwork SvgFile(string path, string svgViewBox = "0 0 24 24", string? previewPath = null)` [#](#method-svgfile-string-string-string) 

[TopologyIconArtwork.cs:68](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L68)

Creates SVG file artwork.

Parameters

**path string required**

**svgViewBox string = "0 0 24 24" optional**

**previewPath string? = null optional**

Returns

 `TopologyIconArtwork` 

## 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 SvgViewBox { get; set; }` [#](#property-svgviewbox) 

[TopologyIconArtwork.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L17)

Gets or sets an SVG viewBox used for inline SVG artwork.

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

[TopologyIconArtwork.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L20)

Gets or sets trusted inline SVG fragment markup, such as path, rect, circle, and linearGradient elements.

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

[TopologyIconArtwork.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L23)

Gets or sets a relative or host-managed path to an SVG file.

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

[TopologyIconArtwork.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L26)

Gets or sets a relative or host-managed path to a generated preview image.

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

[TopologyIconArtwork.cs:29](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L29)

Gets or sets an image href, usually a data URI or host-managed URL.

 `public string PreserveAspectRatio { get; set; }` [#](#property-preserveaspectratio) 

[TopologyIconArtwork.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L33)

Gets or sets the preserveAspectRatio value used when rendering SVG or image artwork.

 `public bool HasSvgBody { get; }` [#](#property-hassvgbody) 

[TopologyIconArtwork.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L39)

Gets whether this artwork defines an inline SVG fragment.

 `public bool HasSvgPath { get; }` [#](#property-hassvgpath) 

[TopologyIconArtwork.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L42)

Gets whether this artwork references an SVG file.

 `public bool HasPreviewPath { get; }` [#](#property-haspreviewpath) 

[TopologyIconArtwork.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L45)

Gets whether this artwork references a preview image.

 `public bool HasImageHref { get; }` [#](#property-hasimagehref) 

[TopologyIconArtwork.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L48)

Gets whether this artwork defines an image href.

 `public bool IsSafe { get; }` [#](#property-issafe) 

[TopologyIconArtwork.cs:135](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Topology/TopologyIconArtwork.cs#L135)

Gets whether inline SVG artwork can be embedded safely.

## Extension Methods

 `public static TopologyIconArtwork ImageHref(TopologyIconArtwork topologyIconArtwork, string? value)` [#](#extension-imagehref-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.ImageHref](/api/chartforgex-topology-topologyiconartwork/): Gets or sets an image href, usually a data URI or host-managed URL.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string? required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { ImageHref = value };    topologyIconArtwork.ImageHref(value);
```

 `public static TopologyIconArtwork PreserveAspectRatio(TopologyIconArtwork topologyIconArtwork, string value)` [#](#extension-preserveaspectratio-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.PreserveAspectRatio](/api/chartforgex-topology-topologyiconartwork/): Gets or sets the preserveAspectRatio value used when rendering SVG or image artwork.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { PreserveAspectRatio = value };    topologyIconArtwork.PreserveAspectRatio(value);
```

 `public static TopologyIconArtwork PreviewPath(TopologyIconArtwork topologyIconArtwork, string? value)` [#](#extension-previewpath-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.PreviewPath](/api/chartforgex-topology-topologyiconartwork/): Gets or sets a relative or host-managed path to a generated preview image.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string? required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { PreviewPath = value };    topologyIconArtwork.PreviewPath(value);
```

 `public static TopologyIconArtwork SvgBody(TopologyIconArtwork topologyIconArtwork, string? value)` [#](#extension-svgbody-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.SvgBody](/api/chartforgex-topology-topologyiconartwork/): Gets or sets trusted inline SVG fragment markup, such as path, rect, circle, and linearGradient elements.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string? required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { SvgBody = value };    topologyIconArtwork.SvgBody(value);
```

 `public static TopologyIconArtwork SvgPath(TopologyIconArtwork topologyIconArtwork, string? value)` [#](#extension-svgpath-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.SvgPath](/api/chartforgex-topology-topologyiconartwork/): Gets or sets a relative or host-managed path to an SVG file.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string? required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { SvgPath = value };    topologyIconArtwork.SvgPath(value);
```

 `public static TopologyIconArtwork SvgViewBox(TopologyIconArtwork topologyIconArtwork, string value)` [#](#extension-svgviewbox-chartforgex-topology-topologyiconartwork-string) 

Sets [TopologyIconArtwork.SvgViewBox](/api/chartforgex-topology-topologyiconartwork/): Gets or sets an SVG viewBox used for inline SVG artwork.

Parameters

**topologyIconArtwork ChartForgeX.Topology.TopologyIconArtwork required**

The instance.

**value string required**

The value.

Returns

 `TopologyIconArtwork` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Topology.TopologyIconArtwork { SvgViewBox = value };    topologyIconArtwork.SvgViewBox(value);
```

<!-- PowerForge markdown artifact sha256:9CCE0F0E6096EAF340097DE5CB30F172D7150F2296B23DD6466229ECE1A80BCD -->
