# VisualStorySourceOptions

Readable editor viewport settings. The document scrolls instead of shrinking below the chosen font size.

 Class  

`ChartForgeX.Stories`

**Namespace**

`ChartForgeX.Stories`

**Assembly**

`ChartForgeX.Stories`

**Source**

[VisualStorySourceOptions.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySourceOptions.cs#L8)

**Modifiers**

sealed

Readable editor viewport settings. The document scrolls instead of shrinking below the chosen font size.

## Inheritance

- object
- VisualStorySourceOptions

## Usage

 Explore 2 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 1

- Property [VisualStorySourceSurface.Options](/api/chartforgex-stories-visualstorysourcesurface/#property-options)

### Accepted by parameters 1

- Constructor [VisualStorySourceSurface.VisualStorySourceSurface](/api/chartforgex-stories-visualstorysourcesurface/#constructor-ctor-chartforgex-stories-storysourcetext-string-chartforgex-stories-visualstorysourceoptions) parameter `options`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualStorySourceOptions(string? fileName = null, double fontSize = 18, bool wrap = true, bool lineNumbers = true, int highlightedLine = 0)` [#](#constructor-ctor-string-double-boolean-boolean-int32) 

[VisualStorySourceOptions.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySourceOptions.cs#L8)

Creates editor settings with optional filename and a one-based highlighted line.

Parameters

**fileName string? = null optional**

**fontSize double = 18 optional**

**wrap bool = true optional**

**lineNumbers bool = true optional**

**highlightedLine int = 0 optional**

## 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) 

[VisualStorySourceOptions.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySourceOptions.cs#L16)

Gets the optional filename displayed in editor chrome.

 `public double FontSize { get; }` [#](#property-fontsize) 

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

Gets the fixed readable font size in logical units.

 `public bool Wrap { get; }` [#](#property-wrap) 

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

Gets whether long lines wrap within the viewport.

 `public bool LineNumbers { get; }` [#](#property-linenumbers) 

[VisualStorySourceOptions.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Stories/VisualStorySourceOptions.cs#L22)

Gets whether source line numbers are shown.

 `public int HighlightedLine { get; }` [#](#property-highlightedline) 

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

Gets a one-based highlighted source line, or zero for the caret line.

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