# HtmlAssetFile

One shared interactive runtime file.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlAssetFile.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L38)

**Modifiers**

sealed

One shared interactive runtime file. The file name carries a content hash, so identical runtimes resolve to the same file across every page of a bundle and a changed runtime never collides with a cached copy.

## Inheritance

- object
- HtmlAssetFile

## Usage

 Explore 25 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 24

- Method [HtmlChartDataAssets.Files](/api/chartforgex-interactivity-html-htmlchartdataassets/#method-files-boolean)
- Property [HtmlChartDataAssets.HoverScriptFile](/api/chartforgex-interactivity-html-htmlchartdataassets/#property-hoverscriptfile)
- Property [HtmlChartDataAssets.HoverStyleSheetFile](/api/chartforgex-interactivity-html-htmlchartdataassets/#property-hoverstylesheetfile)
- Property [HtmlChartDataAssets.ReaderScriptFile](/api/chartforgex-interactivity-html-htmlchartdataassets/#property-readerscriptfile)
- Property [HtmlDataChartAssets.ScriptFile](/api/chartforgex-interactivity-html-htmldatachartassets/#property-scriptfile)
- Method [HtmlEnhanceAssets.Files](/api/chartforgex-interactivity-html-htmlenhanceassets/#method-files)
- Property [HtmlEnhanceAssets.ScriptFile](/api/chartforgex-interactivity-html-htmlenhanceassets/#property-scriptfile)
- Property [HtmlEnhanceAssets.StyleSheetFile](/api/chartforgex-interactivity-html-htmlenhanceassets/#property-stylesheetfile)
- Property [HtmlExternalPage.Files](/api/chartforgex-interactivity-html-htmlexternalpage/#property-files)
- Method [HtmlInteractiveAssetFiles.Charts](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#method-charts-chartforgex-core-chart-chartforgex-interactivity-html-htmlchartinteractionoptions)
- Method [HtmlInteractiveAssetFiles.ChartScriptFor](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#method-chartscriptfor-chartforgex-interactivity-html-htmlchartruntime-chartforgex-interactivity-chartinteractionfeatures-boolean)
- Method [HtmlInteractiveAssetFiles.GraphExplorer](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#method-graphexplorer)
- Method [HtmlInteractiveAssetFiles.TopologyScript](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#method-topologyscript-chartforgex-topology-topologyrenderoptions)
- Property [HtmlInteractiveAssetFiles.ChartFeatureScripts](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-chartfeaturescripts)
- Property [HtmlInteractiveAssetFiles.ChartFrameAlignmentStyle](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-chartframealignmentstyle)
- Property [HtmlInteractiveAssetFiles.ChartScript](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-chartscript)
- Property [HtmlInteractiveAssetFiles.ChartStyle](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-chartstyle)
- Property [HtmlInteractiveAssetFiles.GraphExplorerPhysicsWorker](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-graphexplorerphysicsworker)
- Property [HtmlInteractiveAssetFiles.GraphExplorerScript](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-graphexplorerscript)
- Property [HtmlInteractiveAssetFiles.GraphExplorerStyle](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-graphexplorerstyle)
- Property [HtmlInteractiveAssetFiles.NativeTextScript](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#property-nativetextscript)
- Method [HtmlOfficeImoAssets.Files](/api/chartforgex-interactivity-html-htmlofficeimoassets/#method-files)
- Property [HtmlOfficeImoAssets.ChartForgeXAdapter](/api/chartforgex-interactivity-html-htmlofficeimoassets/#property-chartforgexadapter)
- Property [HtmlOfficeImoAssets.Core](/api/chartforgex-interactivity-html-htmlofficeimoassets/#property-core)

### Accepted by parameters 1

- Method [HtmlInteractiveAssetFiles.WriteTo](/api/chartforgex-interactivity-html-htmlinteractiveassetfiles/#method-writeto-string-collections-generic-ienumerable-chartforgex-interactivity-html-htmlassetfile) parameter `files`

 Filter members   

    Show inherited   

 

## Methods

 `public byte[] GetBytes()` [#](#method-getbytes) 

[HtmlAssetFile.cs:38](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L38)

Returns the bytes a host writes or serves for this file: the UTF-8 content without a byte order mark.

Returns

 `byte[]` A new array on each call. 

## 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 FileName { get; }` [#](#property-filename) 

[HtmlAssetFile.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L25)

Gets the content-addressed file name, for example cfx-interactive.1a2b3c4d5e6f.js.

 `public string Content { get; }` [#](#property-content) 

[HtmlAssetFile.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L28)

Gets the file content (UTF-8, no byte order mark when written).

 `public string ContentType { get; }` [#](#property-contenttype) 

[HtmlAssetFile.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L31)

Gets the MIME type: text/javascript or text/css.

 `public string Integrity { get; }` [#](#property-integrity) 

[HtmlAssetFile.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlAssetFile.cs#L34)

Gets the Subresource Integrity value (sha384-…) of the UTF-8 content.

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