Class CodeView
Represents a view for a text with syntax high lightning.
public class CodeView : TextView, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IScrollInfo, IWeakEventListener, ITextEditorComponent, IServiceProvider
- Inheritance
-
TextViewCodeView
- Implements
-
ITextEditorComponent
- Inherited Members
-
TextView.DocumentPropertyTextView.OptionsPropertyTextView.NonPrintableCharacterBrushPropertyTextView.LinkTextForegroundBrushPropertyTextView.LinkTextBackgroundBrushPropertyTextView.LinkTextUnderlinePropertyTextView.PreviewMouseHoverEventTextView.MouseHoverEventTextView.PreviewMouseHoverStoppedEventTextView.MouseHoverStoppedEventTextView.ColumnRulerPenPropertyTextView.CurrentLineBackgroundPropertyTextView.CurrentLineBorderPropertyTextView.Redraw()TextView.InvalidateLayer(KnownLayer)TextView.GetOrConstructVisualLine(DocumentLine)TextView.EnsureVisualLines()TextView.InvalidateCursor()TextView.GetVisualPosition(TextViewPosition, VisualYPosition)TextView.CollapseLines(DocumentLine, DocumentLine)TextView.DocumentTextView.OptionsTextView.ElementGeneratorsTextView.LineTransformersTextView.LayersTextView.VisualChildrenCountTextView.LogicalChildrenTextView.NonPrintableCharacterBrushTextView.LinkTextForegroundBrushTextView.LinkTextBackgroundBrushTextView.LinkTextUnderlineTextView.VisualLinesTextView.VisualLinesValidTextView.BackgroundRenderersTextView.HorizontalOffsetTextView.VerticalOffsetTextView.ScrollOffsetTextView.WideSpaceWidthTextView.DefaultLineHeightTextView.DefaultBaselineTextView.ServicesTextView.DocumentHeightTextView.ColumnRulerPenTextView.CurrentLineBackgroundTextView.CurrentLineBorderTextView.HighlightedLineTextView.EmptyLineSelectionWidthTextView.DocumentChangedTextView.OptionChangedTextView.VisualLineConstructionStartingTextView.VisualLinesChangedTextView.ScrollOffsetChangedTextView.PreviewMouseHoverTextView.MouseHoverTextView.PreviewMouseHoverStoppedTextView.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
LastVisibleLineProperty
Identifies the LastVisibleLine dependency property.
public static readonly DependencyProperty LastVisibleLineProperty
Field Value
SyntaxHighlightingProperty
Identifies the SyntaxHighlighting dependency property.
public static readonly DependencyProperty SyntaxHighlightingProperty
Field Value
TextProperty
Identifies the Text dependency property.
public static readonly DependencyProperty TextProperty
Field Value
Properties
FirstVisibleLine
Gets or sets the first visible line (one based).
public int FirstVisibleLine { get; set; }
Property Value
LastVisibleLine
Gets or sets the last visible line (one based).
public int LastVisibleLine { get; set; }
Property Value
SyntaxHighlighting
Gets or sets the syntax highlighting definition extension used to colorize the text.
public string SyntaxHighlighting { get; set; }
Property Value
Text
Gets or sets the text.
public string Text { get; set; }
Property Value
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
IHighlightingDefinitionA highlight definition.
Returns
- IVisualLineTransformer
A syntax colorizer.