API Reference
Class
VisualStorySourceOptions
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, Boolean wrap = true, Boolean lineNumbers = true, Int32 highlightedLine = 0) #Creates editor settings with optional filename and a one-based highlighted line.
Parameters
- fileName System.String? = null
- fontSize System.Double = 18
- wrap System.Boolean = true
- lineNumbers System.Boolean = true
- highlightedLine System.Int32 = 0
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
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 Boolean Wrap { get; } #Gets whether long lines wrap within the viewport.
public Boolean LineNumbers { get; } #Gets whether source line numbers are shown.
public Int32 HighlightedLine { get; } #Gets a one-based highlighted source line, or zero for the caret line.