Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Presenters.TextPresenterAvalonia.Controls.PresentersAvalonia.Controlssrc/Avalonia.Controls/Presenters/TextPresenter.csControlcontrolpublic static readonly StyledProperty<bool> ShowSelectionHighlightProperty = AvaloniaProperty.Register<TextPresenter, bool>(nameof(ShowSelectionHighlight), defaultValue: true);public static readonly StyledProperty<int> CaretIndexProperty = TextBox.CaretIndexProperty.AddOwner<TextPresenter>(new(coerce: TextBox.CoerceCaretIndex));public static readonly StyledProperty<bool> RevealPasswordProperty = AvaloniaProperty.Register<TextPresenter, bool>(nameof(RevealPassword));public static readonly StyledProperty<char> PasswordCharProperty = AvaloniaProperty.Register<TextPresenter, char>(nameof(PasswordChar));public static readonly StyledProperty<IBrush?> SelectionBrushProperty = AvaloniaProperty.Register<TextPresenter, IBrush?>(nameof(SelectionBrush));public static readonly StyledProperty<IBrush?> SelectionForegroundBrushProperty = AvaloniaProperty.Register<TextPresenter, IBrush?>(nameof(SelectionForegroundBrush));public static readonly StyledProperty<IBrush?> CaretBrushProperty = AvaloniaProperty.Register<TextPresenter, IBrush?>(nameof(CaretBrush));public static readonly StyledProperty<TimeSpan> CaretBlinkIntervalProperty = TextBox.CaretBlinkIntervalProperty.AddOwner<TextPresenter>();public static readonly StyledProperty<int> SelectionStartProperty = TextBox.SelectionStartProperty.AddOwner<TextPresenter>(new(coerce: TextBox.CoerceCaretIndex));public static readonly StyledProperty<int> SelectionEndProperty = TextBox.SelectionEndProperty.AddOwner<TextPresenter>(new(coerce: TextBox.CoerceCaretIndex));public static readonly StyledProperty<string?> TextProperty = TextBlock.TextProperty.AddOwner<TextPresenter>(new(string.Empty));public static readonly StyledProperty<string?> PreeditTextProperty = AvaloniaProperty.Register<TextPresenter, string?>(nameof(PreeditText));public static readonly StyledProperty<int?> PreeditTextCursorPositionProperty = AvaloniaProperty.Register<TextPresenter, int?>(nameof(PreeditTextCursorPosition));public static readonly StyledProperty<TextAlignment> TextAlignmentProperty = TextBlock.TextAlignmentProperty.AddOwner<TextPresenter>();public static readonly StyledProperty<TextWrapping> TextWrappingProperty = TextBlock.TextWrappingProperty.AddOwner<TextPresenter>();public static readonly StyledProperty<double> LineHeightProperty = TextBlock.LineHeightProperty.AddOwner<TextPresenter>();<TextPresenter x:Name="SampleTextPresenter" />
using Avalonia.Controls.Presenters;
var control = new TextPresenter();