Table of Contents

Class TextEditorView

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents container for all the TextEditor layers.

public class TextEditorView : FrameworkElement, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IScrollInfo
Inheritance
TextEditorView
Implements
Extension Methods

Constructors

TextEditorView()

Initializes a new instance of the TextEditorView class with default settings.

Fields

OutliningPadding

Gets Thickness for outlining padding.

Properties

CaretLayer

Gets an object for rendering TextEditor caret.

CodeActionLayer

Gets an object for rendering TextEditor gutter.

DefaultBaseline

Gets the distance from the top to the baseline.

DefaultLineHeight

Represents default height of the individual line.

EditMarginLayer

Gets an object for rendering TextEditor Edit Margin.

Editor

Gets or sets an associated TextEditor object.

Formatter

Gets TextFormatter for TextEditor control.

GutterLayer

Gets an object for rendering TextEditor gutter.

HorizontalOffset

Gets the horizontal scroll offset.

LineModificatorsLayer

Gets an object for rendering TextEditor line modificators area.

LineNumbersLayer

Gets an object for rendering TextEditor Line numbers area.

LineOverhangTrailing

Represents overhang trailing of the individual line.

LogicalChildren

Gets an enumerator for logical child elements of this element.

MinimapDragLayer

Gets an object for rendering TextEditor minimap drag line.

MinimapLayer

Gets an object for rendering TextEditor minimap.

OutliningHeaderButtonSize

Gets a size of folding button.

ScrollOffset

Gets the scroll offset.

Source

Gets an ITextSource object containing string data for TextEditor object.

TextLayer

Gets an object for rendering TextEditor text area.

TextViewRect

Gets an bounding rectangle for text area.

UserMarginLayer

Gets an object for rendering TextEditor user margin area.

VerticalOffset

Gets the vertical scroll offset.

ViewportWidth

Gets viewport width.

VisualChildrenCount

Gets the number of visual child elements within this element.

WideSpaceWidth

Represents average character width.

Methods

ArrangeOverride(Size)

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

CheckIsFrozen(Freezable)

Check whether specified Freezable object currently modifiable.

CreateTypeface(FrameworkElement)

Creates Typeface for specified FrameworkElement.

GetHitTest(double, double, IHitTestInfo)

Fills hitTestInfo parameter by information about a part of the control at specified coordinate.

GetHitTestForOutlineSections(MouseButtonEventArgs)

Expands outline section if needed.

GetLineNumberString(int)

String representation of specified line number.

GetVisualChild(int)

Overrides GetVisualChild(int), and returns a child at the specified index from a collection of child elements.

InvalidateDefaultTextMetrics()

Forces to recalculate TextEditorView text metrics.

InvalidateGutter()
InvalidateLines()

Invalidates all TextEditor elements.

InvalidateLines(int, int, bool)

Invalidates specific region of TextEditor control.

InvalidateMinimap()
MakeVisible(Rect)

Scrolls the text view so that the specified rectangle gets visible.

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

SetScrollOffset(Vector)

Scrolls control by specified vector.

Events

ScrollOffsetChanged

Occurs when the scroll offset has changed.