Skip to content
ChartForgeX
Class

VisualStorySourceOptions

ChartForgeX.Stories

Namespace
ChartForgeX.Stories
Assembly
ChartForgeX.Stories
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

Accepted by parameters 1

Constructors

public VisualStorySourceOptions(string? fileName = null, double fontSize = 18, bool wrap = true, bool lineNumbers = true, int highlightedLine = 0) #

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

Properties

public string FileName { get; } #

Gets the optional filename displayed in editor chrome.

public double FontSize { get; } #

Gets the fixed readable font size in logical units.

public bool Wrap { get; } #

Gets whether long lines wrap within the viewport.

public bool LineNumbers { get; } #

Gets whether source line numbers are shown.

public int HighlightedLine { get; } #

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