Table of Contents

Class CodeView

Namespace
Loehnert.Lisrt.Scripting.Editor.Controls
Assembly
Loehnert.Lisrt.Scripting.dll

Represents a view for a text with syntax high lightning.

public class CodeView : TextView, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IScrollInfo, IWeakEventListener, ITextEditorComponent, IServiceProvider
Inheritance
TextView
CodeView
Implements
ITextEditorComponent
Inherited Members
TextView.DocumentProperty
TextView.OptionsProperty
TextView.NonPrintableCharacterBrushProperty
TextView.LinkTextForegroundBrushProperty
TextView.LinkTextBackgroundBrushProperty
TextView.LinkTextUnderlineProperty
TextView.PreviewMouseHoverEvent
TextView.MouseHoverEvent
TextView.PreviewMouseHoverStoppedEvent
TextView.MouseHoverStoppedEvent
TextView.ColumnRulerPenProperty
TextView.CurrentLineBackgroundProperty
TextView.CurrentLineBorderProperty
TextView.Redraw()
TextView.InvalidateLayer(KnownLayer)
TextView.GetOrConstructVisualLine(DocumentLine)
TextView.EnsureVisualLines()
TextView.InvalidateCursor()
TextView.GetVisualPosition(TextViewPosition, VisualYPosition)
TextView.CollapseLines(DocumentLine, DocumentLine)
TextView.Document
TextView.Options
TextView.ElementGenerators
TextView.LineTransformers
TextView.Layers
TextView.VisualChildrenCount
TextView.LogicalChildren
TextView.NonPrintableCharacterBrush
TextView.LinkTextForegroundBrush
TextView.LinkTextBackgroundBrush
TextView.LinkTextUnderline
TextView.VisualLines
TextView.VisualLinesValid
TextView.BackgroundRenderers
TextView.HorizontalOffset
TextView.VerticalOffset
TextView.ScrollOffset
TextView.WideSpaceWidth
TextView.DefaultLineHeight
TextView.DefaultBaseline
TextView.Services
TextView.DocumentHeight
TextView.ColumnRulerPen
TextView.CurrentLineBackground
TextView.CurrentLineBorder
TextView.HighlightedLine
TextView.EmptyLineSelectionWidth
TextView.DocumentChanged
TextView.OptionChanged
TextView.VisualLineConstructionStarting
TextView.VisualLinesChanged
TextView.ScrollOffsetChanged
TextView.PreviewMouseHover
TextView.MouseHover
TextView.PreviewMouseHoverStopped
TextView.MouseHoverStopped

Constructors

CodeView()

Initializes a new instance of the CodeView class.

public CodeView()

Fields

FirstVisibleLineProperty

Identifies the FirstVisibleLine dependency property.

public static readonly DependencyProperty FirstVisibleLineProperty

Field Value

DependencyProperty

LastVisibleLineProperty

Identifies the LastVisibleLine dependency property.

public static readonly DependencyProperty LastVisibleLineProperty

Field Value

DependencyProperty

SyntaxHighlightingProperty

Identifies the SyntaxHighlighting dependency property.

public static readonly DependencyProperty SyntaxHighlightingProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text dependency property.

public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Properties

FirstVisibleLine

Gets or sets the first visible line (one based).

public int FirstVisibleLine { get; set; }

Property Value

int

LastVisibleLine

Gets or sets the last visible line (one based).

public int LastVisibleLine { get; set; }

Property Value

int

SyntaxHighlighting

Gets or sets the syntax highlighting definition extension used to colorize the text.

public string SyntaxHighlighting { get; set; }

Property Value

string

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

Methods

CreateColorizer(IHighlightingDefinition)

Creates the highlighting colorizer for the specified highlighting definition. Allows derived classes to provide custom colorizer implementations for special highlighting definitions.

protected virtual IVisualLineTransformer CreateColorizer(IHighlightingDefinition highlightingDefinition)

Parameters

highlightingDefinition IHighlightingDefinition

A highlight definition.

Returns

IVisualLineTransformer

A syntax colorizer.