Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.SelectableTextBlockAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/SelectableTextBlock.csIInlineHost, TextBlockcontrolpublic static readonly StyledProperty<int> SelectionStartProperty = TextBox.SelectionStartProperty.AddOwner<SelectableTextBlock>();public static readonly StyledProperty<int> SelectionEndProperty = TextBox.SelectionEndProperty.AddOwner<SelectableTextBlock>();public static readonly DirectProperty<SelectableTextBlock, string> SelectedTextProperty = AvaloniaProperty.RegisterDirect<SelectableTextBlock, string>( nameof(SelectedText), o => o.SelectedText);public static readonly StyledProperty<IBrush?> SelectionBrushProperty = TextBox.SelectionBrushProperty.AddOwner<SelectableTextBlock>();public static readonly StyledProperty<IBrush?> SelectionForegroundBrushProperty = TextBox.SelectionForegroundBrushProperty.AddOwner<SelectableTextBlock>();public static readonly DirectProperty<SelectableTextBlock, bool> CanCopyProperty = TextBox.CanCopyProperty.AddOwner<SelectableTextBlock>(o => o.CanCopy);public static readonly RoutedEvent<RoutedEventArgs> CopyingToClipboardEvent = RoutedEvent.Register<SelectableTextBlock, RoutedEventArgs>( nameof(CopyingToClipboard), RoutingStrategies.Bubble);public event EventHandler<RoutedEventArgs>? CopyingToClipboard {public IBrush? SelectionBrush {public IBrush? SelectionForegroundBrush {public int SelectionStart {public int SelectionEnd {public string SelectedText {public bool CanCopy {public async void Copy() {public void SelectAll() {<SelectableTextBlock x:Name="SampleSelectableTextBlock" />
using Avalonia.Controls;
var control = new SelectableTextBlock();