C# Class AvalonStudio.TextEditor.TextEditor

Inheritance: Avalonia.Controls.Primitives.TemplatedControl
Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public GetPreviousWordAtIndex ( int index ) : string
index int
Résultat string

GetSelectionAsSegment() public méthode

public GetSelectionAsSegment ( ) : TextSegment
Résultat AvalonStudio.TextEditor.Document.TextSegment

GetWordAtIndex() public méthode

public GetWordAtIndex ( int index ) : string
index int
Résultat string

OnAttachedToVisualTree() protected méthode

protected OnAttachedToVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
e Avalonia.VisualTreeAttachmentEventArgs
Résultat void

OnDetachedFromVisualTree() protected méthode

protected OnDetachedFromVisualTree ( Avalonia.VisualTreeAttachmentEventArgs e ) : void
e Avalonia.VisualTreeAttachmentEventArgs
Résultat void

OnGotFocus() protected méthode

protected OnGotFocus ( Avalonia.Input.GotFocusEventArgs e ) : void
e Avalonia.Input.GotFocusEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
Résultat void

OnLostFocus() protected méthode

protected OnLostFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs
Résultat void

OnPointerMoved() protected méthode

protected OnPointerMoved ( Avalonia.Input.PointerEventArgs e ) : void
e Avalonia.Input.PointerEventArgs
Résultat void

OnPointerPressed() protected méthode

protected OnPointerPressed ( PointerPressedEventArgs e ) : void
e PointerPressedEventArgs
Résultat void

OnPointerReleased() protected méthode

protected OnPointerReleased ( PointerEventArgs e ) : void
e PointerEventArgs
Résultat void

OnTemplateApplied() protected méthode

protected OnTemplateApplied ( TemplateAppliedEventArgs e ) : void
e TemplateAppliedEventArgs
Résultat void

OnTextInput() protected méthode

protected OnTextInput ( TextInputEventArgs e ) : void
e TextInputEventArgs
Résultat void

ScrollToLine() public méthode

public ScrollToLine ( int line ) : void
line int
Résultat void

SetSelection() public méthode

public SetSelection ( TextSegment segment ) : void
segment TextSegment
Résultat void

Property Details

AcceptsReturnProperty public_oe static_oe property

public static AvaloniaProperty AcceptsReturnProperty
Résultat AvaloniaProperty

AcceptsTabProperty public_oe static_oe property

public static AvaloniaProperty AcceptsTabProperty
Résultat AvaloniaProperty

BackgroundRenderersProperty public_oe static_oe property

public static AvaloniaProperty> BackgroundRenderersProperty
Résultat AvaloniaProperty>

BeforeTextChangedCommandProperty public_oe static_oe property

public static StyledProperty BeforeTextChangedCommandProperty
Résultat StyledProperty

CaretIndexProperty public_oe static_oe property

public static AvaloniaProperty CaretIndexProperty
Résultat AvaloniaProperty

CaretLocationInTextViewProperty public_oe static_oe property

public static AvaloniaProperty CaretLocationInTextViewProperty
Résultat AvaloniaProperty

CaretLocationProperty public_oe static_oe property

public static AvaloniaProperty CaretLocationProperty
Résultat AvaloniaProperty

ContentProperty public_oe static_oe property

public static StyledProperty ContentProperty
Résultat StyledProperty

DocumentLineTransformersProperty public_oe static_oe property

public static AvaloniaProperty> DocumentLineTransformersProperty
Résultat AvaloniaProperty>

HeaderProperty public_oe static_oe property

Defines the Header property.
public static StyledProperty HeaderProperty
Résultat StyledProperty

IndentationStrategyProperty public_oe static_oe property

public static AvaloniaProperty IndentationStrategyProperty
Résultat AvaloniaProperty

LineHeightProperty public_oe static_oe property

public static AvaloniaProperty LineHeightProperty
Résultat AvaloniaProperty

MarginsProperty public_oe static_oe property

public static StyledProperty> MarginsProperty
Résultat StyledProperty>

MouseCursorOffsetProperty public_oe static_oe property

public static AvaloniaProperty MouseCursorOffsetProperty
Résultat AvaloniaProperty

MouseCursorPositionProperty public_oe static_oe property

public static AvaloniaProperty MouseCursorPositionProperty
Résultat AvaloniaProperty

OffsetProperty public_oe static_oe property

public static AvaloniaProperty OffsetProperty
Résultat AvaloniaProperty

SelectedWordProperty public_oe static_oe property

public static AvaloniaProperty SelectedWordProperty
Résultat AvaloniaProperty

SelectionEndProperty public_oe static_oe property

public static AvaloniaProperty SelectionEndProperty
Résultat AvaloniaProperty

SelectionStartProperty public_oe static_oe property

public static AvaloniaProperty SelectionStartProperty
Résultat AvaloniaProperty

TabCharacterProperty public_oe static_oe property

public static AvaloniaProperty TabCharacterProperty
Résultat AvaloniaProperty

TextChangedCommandProperty public_oe static_oe property

public static AvaloniaProperty TextChangedCommandProperty
Résultat AvaloniaProperty

TextDocumentProperty public_oe static_oe property

public static AvaloniaProperty TextDocumentProperty
Résultat AvaloniaProperty