Class
VisualStorySourceOptions
ChartForgeX.Stories
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
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
- fontSize double = 18
- wrap bool = true
- lineNumbers bool = true
- highlightedLine int = 0
Inherited Methods
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.