Table of Contents

Class FormattedSelectableTextBlock

Namespace
CarinaStudio.Controls
Assembly
CarinaStudio.AppBase.Avalonia.dll

SelectableTextBlock which shows formatted text on it.

public class FormattedSelectableTextBlock : SelectableTextBlock, INotifyPropertyChanged, IDataContextProvider, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, IInputElement, IDataTemplateHost, INamed, ISetterValue, ILogical
Inheritance
AvaloniaObject
Animatable
StyledElement
Visual
Layoutable
Interactive
InputElement
Control
TextBlock
SelectableTextBlock
FormattedSelectableTextBlock
Implements
IDataContextProvider
IThemeVariantHost
IResourceHost
IResourceNode
IStyleHost
ISetLogicalParent
ISetInheritanceParent
IStyleable
IInputElement
IDataTemplateHost
INamed
ISetterValue
ILogical
Inherited Members
SelectableTextBlock.SelectionStartProperty
SelectableTextBlock.SelectionEndProperty
SelectableTextBlock.SelectedTextProperty
SelectableTextBlock.SelectionBrushProperty
SelectableTextBlock.CanCopyProperty
SelectableTextBlock.CopyingToClipboardEvent
SelectableTextBlock.Copy()
SelectableTextBlock.SelectAll()
SelectableTextBlock.ClearSelection()
SelectableTextBlock.OnGotFocus(GotFocusEventArgs)
SelectableTextBlock.OnLostFocus(RoutedEventArgs)
SelectableTextBlock.RenderTextLayout(DrawingContext, Point)
SelectableTextBlock.OnKeyDown(KeyEventArgs)
SelectableTextBlock.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
SelectableTextBlock.OnPointerPressed(PointerPressedEventArgs)
SelectableTextBlock.OnPointerMoved(PointerEventArgs)
SelectableTextBlock.OnPointerReleased(PointerReleasedEventArgs)
SelectableTextBlock.SelectionBrush
SelectableTextBlock.SelectionStart
SelectableTextBlock.SelectionEnd
SelectableTextBlock.SelectedText
SelectableTextBlock.CanCopy
SelectableTextBlock.CopyingToClipboard
TextBlock.BackgroundProperty
TextBlock.PaddingProperty
TextBlock.FontFamilyProperty
TextBlock.FontSizeProperty
TextBlock.FontStyleProperty
TextBlock.FontWeightProperty
TextBlock.FontStretchProperty
TextBlock.ForegroundProperty
TextBlock.BaselineOffsetProperty
TextBlock.LineHeightProperty
TextBlock.LineSpacingProperty
TextBlock.LetterSpacingProperty
TextBlock.MaxLinesProperty
TextBlock.TextProperty
TextBlock.TextAlignmentProperty
TextBlock.TextWrappingProperty
TextBlock.TextTrimmingProperty
TextBlock.TextDecorationsProperty
TextBlock.InlinesProperty
TextBlock.GetBaselineOffset(Control)
TextBlock.GetTextAlignment(Control)
TextBlock.SetTextAlignment(Control, TextAlignment)
TextBlock.GetTextWrapping(Control)
TextBlock.SetTextWrapping(Control, TextWrapping)
TextBlock.GetTextTrimming(Control)
TextBlock.SetTextTrimming(Control, TextTrimming)
TextBlock.GetLineHeight(Control)
TextBlock.GetLetterSpacing(Control)
TextBlock.GetMaxLines(Control)
TextBlock.Render(DrawingContext)
TextBlock.InvalidateTextLayout()
TextBlock.OnMeasureInvalidated()
TextBlock.ArrangeOverride(Size)
TextBlock.OnCreateAutomationPeer()
TextBlock.TextLayout
TextBlock.Padding
TextBlock.Background
TextBlock.FontFamily
TextBlock.FontSize
TextBlock.FontStyle
TextBlock.FontWeight
TextBlock.FontStretch
TextBlock.Foreground
TextBlock.LineHeight
TextBlock.LineSpacing
TextBlock.LetterSpacing
TextBlock.MaxLines
TextBlock.TextWrapping
TextBlock.TextTrimming
TextBlock.TextAlignment
TextBlock.TextDecorations
TextBlock.Inlines
TextBlock.BypassFlowDirectionPolicies
TextBlock.BaselineOffset
Control.FocusAdornerProperty
Control.TagProperty
Control.ContextMenuProperty
Control.ContextFlyoutProperty
Control.RequestBringIntoViewEvent
Control.ContextRequestedEvent
Control.LoadedEvent
Control.UnloadedEvent
Control.SizeChangedEvent
Control.GetTemplateFocusTarget()
Control.OnLoaded(RoutedEventArgs)
Control.OnUnloaded(RoutedEventArgs)
Control.OnSizeChanged(SizeChangedEventArgs)
Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnKeyUp(KeyEventArgs)
Control.FocusAdorner
Control.DataTemplates
Control.ContextMenu
Control.ContextFlyout
Control.IsLoaded
Control.Tag
Control.ContextRequested
Control.Loaded
Control.Unloaded
Control.SizeChanged
InputElement.FocusableProperty
InputElement.IsEnabledProperty
InputElement.IsEffectivelyEnabledProperty
InputElement.CursorProperty
InputElement.IsKeyboardFocusWithinProperty
InputElement.IsFocusedProperty
InputElement.IsHitTestVisibleProperty
InputElement.IsPointerOverProperty
InputElement.IsTabStopProperty
InputElement.GotFocusEvent
InputElement.LostFocusEvent
InputElement.KeyDownEvent
InputElement.KeyUpEvent
InputElement.TabIndexProperty
InputElement.TextInputEvent
InputElement.TextInputMethodClientRequestedEvent
InputElement.PointerEnteredEvent
InputElement.PointerExitedEvent
InputElement.PointerMovedEvent
InputElement.PointerPressedEvent
InputElement.PointerReleasedEvent
InputElement.PointerCaptureLostEvent
InputElement.PointerWheelChangedEvent
InputElement.TappedEvent
InputElement.HoldingEvent
InputElement.DoubleTappedEvent
InputElement.Focus(NavigationMethod, KeyModifiers)
InputElement.OnTextInput(TextInputEventArgs)
InputElement.OnPointerEntered(PointerEventArgs)
InputElement.OnPointerExited(PointerEventArgs)
InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)
InputElement.OnPointerWheelChanged(PointerWheelEventArgs)
InputElement.UpdateIsEffectivelyEnabled()
InputElement.Focusable
InputElement.IsEnabled
InputElement.Cursor
InputElement.IsKeyboardFocusWithin
InputElement.IsFocused
InputElement.IsHitTestVisible
InputElement.IsPointerOver
InputElement.IsTabStop
InputElement.IsEffectivelyEnabled
InputElement.TabIndex
InputElement.KeyBindings
InputElement.IsEnabledCore
InputElement.GestureRecognizers
InputElement.GotFocus
InputElement.LostFocus
InputElement.KeyDown
InputElement.KeyUp
InputElement.TextInput
InputElement.TextInputMethodClientRequested
InputElement.PointerEntered
InputElement.PointerExited
InputElement.PointerMoved
InputElement.PointerPressed
InputElement.PointerReleased
InputElement.PointerCaptureLost
InputElement.PointerWheelChanged
InputElement.Tapped
InputElement.Holding
InputElement.DoubleTapped
Interactive.RaiseEvent(RoutedEventArgs)
Interactive.BuildEventRoute(RoutedEvent)
Layoutable.DesiredSizeProperty
Layoutable.WidthProperty
Layoutable.HeightProperty
Layoutable.MinWidthProperty
Layoutable.MaxWidthProperty
Layoutable.MinHeightProperty
Layoutable.MaxHeightProperty
Layoutable.MarginProperty
Layoutable.HorizontalAlignmentProperty
Layoutable.VerticalAlignmentProperty
Layoutable.UseLayoutRoundingProperty
Layoutable.UpdateLayout()
Layoutable.ApplyTemplate()
Layoutable.Measure(Size)
Layoutable.Arrange(Rect)
Layoutable.InvalidateMeasure()
Layoutable.InvalidateArrange()
Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])
Layoutable.AffectsArrange<T>(params AvaloniaProperty[])
Layoutable.MeasureCore(Size)
Layoutable.ArrangeCore(Rect)
Layoutable.OnVisualParentChanged(Visual, Visual)
Layoutable.Width
Layoutable.Height
Layoutable.MinWidth
Layoutable.MaxWidth
Layoutable.MinHeight
Layoutable.MaxHeight
Layoutable.Margin
Layoutable.HorizontalAlignment
Layoutable.VerticalAlignment
Layoutable.DesiredSize
Layoutable.IsMeasureValid
Layoutable.IsArrangeValid
Layoutable.UseLayoutRounding
Layoutable.EffectiveViewportChanged
Layoutable.LayoutUpdated
Visual.BoundsProperty
Visual.ClipToBoundsProperty
Visual.ClipProperty
Visual.IsVisibleProperty
Visual.OpacityProperty
Visual.OpacityMaskProperty
Visual.EffectProperty
Visual.HasMirrorTransformProperty
Visual.RenderTransformProperty
Visual.RenderTransformOriginProperty
Visual.FlowDirectionProperty
Visual.VisualParentProperty
Visual.ZIndexProperty
Visual.GetFlowDirection(Visual)
Visual.SetFlowDirection(Visual, FlowDirection)
Visual.InvalidateVisual()
Visual.AffectsRender<T>(params AvaloniaProperty[])
Visual.InvalidateMirrorTransform()
Visual.Bounds
Visual.ClipToBounds
Visual.Clip
Visual.IsEffectivelyVisible
Visual.IsVisible
Visual.Opacity
Visual.OpacityMask
Visual.Effect
Visual.HasMirrorTransform
Visual.RenderTransform
Visual.RenderTransformOrigin
Visual.FlowDirection
Visual.ZIndex
Visual.VisualChildren
Visual.VisualRoot
Visual.AttachedToVisualTree
Visual.DetachedFromVisualTree
StyledElement.DataContextProperty
StyledElement.NameProperty
StyledElement.ParentProperty
StyledElement.TemplatedParentProperty
StyledElement.ThemeProperty
StyledElement.BeginInit()
StyledElement.EndInit()
StyledElement.ApplyStyling()
StyledElement.InitializeIfNeeded()
StyledElement.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
StyledElement.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)
StyledElement.OnDataContextBeginUpdate()
StyledElement.OnDataContextEndUpdate()
StyledElement.OnInitialized()
StyledElement.Name
StyledElement.Classes
StyledElement.DataContext
StyledElement.IsInitialized
StyledElement.Styles
StyledElement.StyleKey
StyledElement.Resources
StyledElement.TemplatedParent
StyledElement.Theme
StyledElement.LogicalChildren
StyledElement.PseudoClasses
StyledElement.Parent
StyledElement.ActualThemeVariant
StyledElement.AttachedToLogicalTree
StyledElement.DetachedFromLogicalTree
StyledElement.DataContextChanged
StyledElement.Initialized
StyledElement.ResourcesChanged
StyledElement.ActualThemeVariantChanged
Animatable.TransitionsProperty
Animatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
Animatable.Transitions
AvaloniaObject.CheckAccess()
AvaloniaObject.VerifyAccess()
AvaloniaObject.ClearValue(AvaloniaProperty)
AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)
AvaloniaObject.ClearValue<T>(StyledProperty<T>)
AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetHashCode()
AvaloniaObject.GetValue(AvaloniaProperty)
AvaloniaObject.GetValue<T>(StyledProperty<T>)
AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)
AvaloniaObject.IsAnimating(AvaloniaProperty)
AvaloniaObject.IsSet(AvaloniaProperty)
AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)
AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)
AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)
AvaloniaObject.CoerceValue(AvaloniaProperty)
AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)
AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)
AvaloniaObject.InheritanceParent
AvaloniaObject.this[AvaloniaProperty]
AvaloniaObject.this[IndexerDescriptor]
AvaloniaObject.PropertyChanged
Extension Methods

Constructors

FormattedSelectableTextBlock()

Initialize new FormattedSelectableTextBlock instance.

public FormattedSelectableTextBlock()

Fields

Arg1Property

Property of Arg1.

public static readonly StyledProperty<object?> Arg1Property

Field Value

StyledProperty<object>

Arg2Property

Property of Arg2.

public static readonly StyledProperty<object?> Arg2Property

Field Value

StyledProperty<object>

Arg3Property

Property of Arg3.

public static readonly StyledProperty<object?> Arg3Property

Field Value

StyledProperty<object>

Arg4Property

Property of Arg4.

public static readonly StyledProperty<object?> Arg4Property

Field Value

StyledProperty<object>

Arg5Property

Property of Arg5.

public static readonly StyledProperty<object?> Arg5Property

Field Value

StyledProperty<object>

Arg6Property

Property of Arg6.

public static readonly StyledProperty<object?> Arg6Property

Field Value

StyledProperty<object>

Arg7Property

Property of Arg7.

public static readonly StyledProperty<object?> Arg7Property

Field Value

StyledProperty<object>

Arg8Property

Property of Arg8.

public static readonly StyledProperty<object?> Arg8Property

Field Value

StyledProperty<object>

Arg9Property

Property of Arg9.

public static readonly StyledProperty<object?> Arg9Property

Field Value

StyledProperty<object>

FormatProperty

Property of Format.

public static readonly StyledProperty<string?> FormatProperty

Field Value

StyledProperty<string>

Properties

Arg1

Get or set 1st argument to generate formatted string.

public object? Arg1 { get; set; }

Property Value

object

Arg2

Get or set 2nd argument to generate formatted string.

public object? Arg2 { get; set; }

Property Value

object

Arg3

Get or set 3rd argument to generate formatted string.

public object? Arg3 { get; set; }

Property Value

object

Arg4

Get or set 4th argument to generate formatted string.

public object? Arg4 { get; set; }

Property Value

object

Arg5

Get or set 5th argument to generate formatted string.

public object? Arg5 { get; set; }

Property Value

object

Arg6

Get or set 6th argument to generate formatted string.

public object? Arg6 { get; set; }

Property Value

object

Arg7

Get or set 7th argument to generate formatted string.

public object? Arg7 { get; set; }

Property Value

object

Arg8

Get or set 8th argument to generate formatted string.

public object? Arg8 { get; set; }

Property Value

object

Arg9

Get or set 9th argument to generate formatted string.

public object? Arg9 { get; set; }

Property Value

object

Format

Get or set string format.

public string? Format { get; set; }

Property Value

string

StyleKeyOverride

Gets the type by which the element is styled.

protected override Type StyleKeyOverride { get; }

Property Value

Type

Remarks

Usually controls are styled by their own type, but there are instances where you want an element to be styled by its base type, e.g. creating SpecialButton that derives from Button and adds extra functionality but is still styled as a regular Button. Override this property to change the style for a control class, returning the type that you wish the elements to be styled as.

Text

Get formatted text.

public string? Text { get; }

Property Value

string