C# Class AvalonStudio.TextEditor.TextEditor

Inheritance: Avalonia.Controls.Primitives.TemplatedControl
Mostrar archivo Open project: VitalElement/AvalonStudio Class Usage Examples

Public Properties

Property Type Description
AcceptsReturnProperty AvaloniaProperty
AcceptsTabProperty AvaloniaProperty
BackgroundRenderersProperty AvaloniaProperty>
BeforeTextChangedCommandProperty StyledProperty
CaretIndexProperty AvaloniaProperty
CaretLocationInTextViewProperty AvaloniaProperty
CaretLocationProperty AvaloniaProperty
ContentProperty StyledProperty
DocumentLineTransformersProperty AvaloniaProperty>
HeaderProperty StyledProperty
IndentationStrategyProperty AvaloniaProperty
LineHeightProperty AvaloniaProperty
MarginsProperty StyledProperty>
MouseCursorOffsetProperty AvaloniaProperty
MouseCursorPositionProperty AvaloniaProperty
OffsetProperty AvaloniaProperty
SelectedWordProperty AvaloniaProperty
SelectionEndProperty AvaloniaProperty
SelectionStartProperty AvaloniaProperty
TabCharacterProperty AvaloniaProperty
TextChangedCommandProperty AvaloniaProperty
TextDocumentProperty AvaloniaProperty

Public Methods

Method Description
GetPreviousWordAtIndex ( int index ) : string
GetSelectionAsSegment ( ) : TextSegment
GetWordAtIndex ( int index ) : string
ScrollToLine ( int line ) : void
SetSelection ( TextSegment segment ) : void

Protected Methods

Method Description
OnAttachedToVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
OnDetachedFromVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
OnGotFocus ( Avalonia.Input.GotFocusEventArgs e ) : void
OnKeyDown ( object sender, KeyEventArgs e ) : void
OnLostFocus ( RoutedEventArgs e ) : void
OnPointerMoved ( Avalonia.Input.PointerEventArgs e ) : void
OnPointerPressed ( PointerPressedEventArgs e ) : void
OnPointerReleased ( PointerEventArgs e ) : void
OnTemplateApplied ( TemplateAppliedEventArgs e ) : void
OnTextInput ( TextInputEventArgs e ) : void

Private Methods

Method Description
Copy ( ) : void
Cut ( ) : void
DeleteSelection ( ) : bool
GetSelection ( ) : string
HandleTextInput ( string input ) : void
InvalidateCaretPosition ( ) : void
InvalidateSelectedWord ( ) : void
MoveEnd ( InputModifiers modifiers ) : void
MoveHome ( InputModifiers modifiers ) : void
MoveHorizontal ( int count, InputModifiers modifiers ) : void
MoveVertical ( int count, InputModifiers modifiers ) : void
Paste ( ) : void
Redo ( ) : void
SelectAll ( ) : void
SetHighestColumn ( ) : void
TextEditor ( ) : System
TransformSelectedLines ( Action transformLine ) : void
Undo ( ) : void

Method Details

GetPreviousWordAtIndex() public method

public GetPreviousWordAtIndex ( int index ) : string
index int
return string

GetSelectionAsSegment() public method

public GetSelectionAsSegment ( ) : TextSegment
return AvalonStudio.TextEditor.Document.TextSegment

GetWordAtIndex() public method

public GetWordAtIndex ( int index ) : string
index int
return string

OnAttachedToVisualTree() protected method

protected OnAttachedToVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
e Avalonia.VisualTreeAttachmentEventArgs
return void

OnDetachedFromVisualTree() protected method

protected OnDetachedFromVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
e Avalonia.VisualTreeAttachmentEventArgs
return void

OnGotFocus() protected method

protected OnGotFocus ( Avalonia.Input.GotFocusEventArgs e ) : void
e Avalonia.Input.GotFocusEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs
return void

OnPointerMoved() protected method

protected OnPointerMoved ( Avalonia.Input.PointerEventArgs e ) : void
e Avalonia.Input.PointerEventArgs
return void

OnPointerPressed() protected method

protected OnPointerPressed ( PointerPressedEventArgs e ) : void
e PointerPressedEventArgs
return void

OnPointerReleased() protected method

protected OnPointerReleased ( PointerEventArgs e ) : void
e PointerEventArgs
return void

OnTemplateApplied() protected method

protected OnTemplateApplied ( TemplateAppliedEventArgs e ) : void
e TemplateAppliedEventArgs
return void

OnTextInput() protected method

protected OnTextInput ( TextInputEventArgs e ) : void
e TextInputEventArgs
return void

ScrollToLine() public method

public ScrollToLine ( int line ) : void
line int
return void

SetSelection() public method

public SetSelection ( TextSegment segment ) : void
segment TextSegment
return void

Property Details

AcceptsReturnProperty public_oe static_oe property

public static AvaloniaProperty AcceptsReturnProperty
return AvaloniaProperty

AcceptsTabProperty public_oe static_oe property

public static AvaloniaProperty AcceptsTabProperty
return AvaloniaProperty

BackgroundRenderersProperty public_oe static_oe property

public static AvaloniaProperty> BackgroundRenderersProperty
return AvaloniaProperty>

BeforeTextChangedCommandProperty public_oe static_oe property

public static StyledProperty BeforeTextChangedCommandProperty
return StyledProperty

CaretIndexProperty public_oe static_oe property

public static AvaloniaProperty CaretIndexProperty
return AvaloniaProperty

CaretLocationInTextViewProperty public_oe static_oe property

public static AvaloniaProperty CaretLocationInTextViewProperty
return AvaloniaProperty

CaretLocationProperty public_oe static_oe property

public static AvaloniaProperty CaretLocationProperty
return AvaloniaProperty

ContentProperty public_oe static_oe property

public static StyledProperty ContentProperty
return StyledProperty

DocumentLineTransformersProperty public_oe static_oe property

public static AvaloniaProperty> DocumentLineTransformersProperty
return AvaloniaProperty>

HeaderProperty public_oe static_oe property

Defines the Header property.
public static StyledProperty HeaderProperty
return StyledProperty

IndentationStrategyProperty public_oe static_oe property

public static AvaloniaProperty IndentationStrategyProperty
return AvaloniaProperty

LineHeightProperty public_oe static_oe property

public static AvaloniaProperty LineHeightProperty
return AvaloniaProperty

MarginsProperty public_oe static_oe property

public static StyledProperty> MarginsProperty
return StyledProperty>

MouseCursorOffsetProperty public_oe static_oe property

public static AvaloniaProperty MouseCursorOffsetProperty
return AvaloniaProperty

MouseCursorPositionProperty public_oe static_oe property

public static AvaloniaProperty MouseCursorPositionProperty
return AvaloniaProperty

OffsetProperty public_oe static_oe property

public static AvaloniaProperty OffsetProperty
return AvaloniaProperty

SelectedWordProperty public_oe static_oe property

public static AvaloniaProperty SelectedWordProperty
return AvaloniaProperty

SelectionEndProperty public_oe static_oe property

public static AvaloniaProperty SelectionEndProperty
return AvaloniaProperty

SelectionStartProperty public_oe static_oe property

public static AvaloniaProperty SelectionStartProperty
return AvaloniaProperty

TabCharacterProperty public_oe static_oe property

public static AvaloniaProperty TabCharacterProperty
return AvaloniaProperty

TextChangedCommandProperty public_oe static_oe property

public static AvaloniaProperty TextChangedCommandProperty
return AvaloniaProperty

TextDocumentProperty public_oe static_oe property

public static AvaloniaProperty TextDocumentProperty
return AvaloniaProperty