Class LineHandle
Line handle renderable
Inheritance
object
LineHandle
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class LineHandle : IStaticRenderable
Constructors
| Edit this page View SourceLineHandle(string)
Makes a new instance of the LineHandle renderer
Declaration
public LineHandle(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | Path to file to render |
LineHandle(string[])
Makes a new instance of the LineHandle renderer
Declaration
public LineHandle(string[] fileLines)
Parameters
Type | Name | Description |
---|---|---|
string[] | fileLines | File lines to render |
Properties
| Edit this page View SourceColor
Text color
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Position
A specific line number
Declaration
public int Position { get; set; }
Property Value
Type | Description |
---|---|
int |
Ranged
Whether the line handle is ranged or not (targeting a specific start column to a specific end column)
Declaration
public bool Ranged { get; set; }
Property Value
Type | Description |
---|---|
bool |
SourcePosition
A specific position to either highlight or to start a range from
Declaration
public int SourcePosition { get; set; }
Property Value
Type | Description |
---|---|
int |
TargetPosition
A specific position to end a range to in ranged mode
Declaration
public int TargetPosition { get; set; }
Property Value
Type | Description |
---|---|
int |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceRender()
Renders a LineHandle segment group
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | Rendered LineHandle text that will be used by the renderer |