TextElement Class

TextElement is an base class for content in text based controls. TextElements span other content, applying property values or providing structural information.

Definition

Namespace: Avalonia.Controls.Documents
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public abstract class TextElement : StyledElement
Inheritance
Object    AvaloniaObject    Animatable    StyledElement    TextElement
Derived

Constructors

TextElementInitializes a new instance of the TextElement class

Properties

ActualThemeVariant
(Inherited from StyledElement)
Background Gets or sets a brush used to paint the control's background.
Classes
(Inherited from StyledElement)
DataContext
(Inherited from StyledElement)
FontFamily Gets or sets the font family.
FontFeatures Gets or sets the font features.
FontSize Gets or sets the font size.
FontStretch Gets or sets the font stretch.
FontStyle Gets or sets the font style.
FontWeight Gets or sets the font weight.
Foreground Gets or sets a brush used to paint the text.
InheritanceParent
(Inherited from AvaloniaObject)
IsInitialized
(Inherited from StyledElement)
Item
(Inherited from AvaloniaObject)
Item
(Inherited from AvaloniaObject)
LogicalChildren
(Inherited from StyledElement)
Name
(Inherited from StyledElement)
Parent
(Inherited from StyledElement)
PseudoClasses
(Inherited from StyledElement)
Resources
(Inherited from StyledElement)
StyleKey
(Inherited from StyledElement)
StyleKeyOverride
(Inherited from StyledElement)
Styles
(Inherited from StyledElement)
TemplatedParent
(Inherited from StyledElement)
Theme
(Inherited from StyledElement)
Transitions
(Inherited from Animatable)

Methods

ApplyStyling
(Inherited from StyledElement)
BeginInit
(Inherited from StyledElement)
Bind(AvaloniaProperty, IBinding)
(Inherited from AvaloniaObject)
Bind(AvaloniaProperty, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableObject)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
CheckAccess
(Inherited from AvaloniaObject)
ClearValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
ClearValue``1(AvaloniaPropertyUMP)
(Inherited from AvaloniaObject)
ClearValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
ClearValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
CoerceValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
EndInit
(Inherited from StyledElement)
Equals(Object)
(Inherited from AvaloniaObject)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetBaseValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
GetFontFamily(Control) Gets the value of the attached FontFamilyProperty on a control.
GetFontFeatures(Control) Gets the value of the attached FontFeaturesProperty on a control.
GetFontSize(Control) Gets the value of the attached FontSizeProperty on a control.
GetFontStretch(Control) Gets the value of the attached FontStretchProperty on a control.
GetFontStyle(Control) Gets the value of the attached FontStyleProperty on a control.
GetFontWeight(Control) Gets the value of the attached FontWeightProperty on a control.
GetForeground(Control) Gets the value of the attached ForegroundProperty on a control.
GetHashCode
(Inherited from AvaloniaObject)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
GetValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
GetValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
InitializeIfNeeded
(Inherited from StyledElement)
IsAnimating(AvaloniaProperty)
(Inherited from AvaloniaObject)
IsSet(AvaloniaProperty)
(Inherited from AvaloniaObject)
LogicalChildrenCollectionChanged(Object, NotifyCollectionChangedEventArgs)
(Inherited from StyledElement)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
(Inherited from StyledElement)
OnDataContextBeginUpdate
(Inherited from StyledElement)
OnDataContextChanged(EventArgs)
(Inherited from StyledElement)
OnDataContextEndUpdate
(Inherited from StyledElement)
OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)
(Inherited from StyledElement)
OnInitialized
(Inherited from StyledElement)
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
(Overrides StyledElement.OnPropertyChanged(AvaloniaPropertyChangedEventArgs))
OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
(Inherited from Animatable)
RaisePropertyChanged``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
SetAndRaise``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
SetCurrentValue(AvaloniaProperty, Object)
(Inherited from AvaloniaObject)
SetCurrentValue``1(StyledPropertyUMP, UMP)
(Inherited from AvaloniaObject)
SetFontFamily(Control, FontFamily) Sets the value of the attached FontFamilyProperty on a control.
SetFontFeatures(Control, FontFeatureCollection) Sets the value of the attached FontFeaturesProperty on a control.
SetFontSize(Control, Double) Sets the value of the attached FontSizeProperty on a control.
SetFontStretch(Control, FontStretch) Sets the value of the attached FontStretchProperty on a control.
SetFontStyle(Control, FontStyle) Sets the value of the attached FontStyleProperty on a control.
SetFontWeight(Control, FontWeight) Sets the value of the attached FontWeightProperty on a control.
SetForeground(Control, IBrush) Sets the value of the attached ForegroundProperty on a control.
SetValue(AvaloniaProperty, Object, BindingPriority)
(Inherited from AvaloniaObject)
SetValue``1(DirectPropertyBaseUMP, UMP)
(Inherited from AvaloniaObject)
SetValue``1(StyledPropertyUMP, UMP, BindingPriority)
(Inherited from AvaloniaObject)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetResource(Object, ThemeVariant, Object)
(Inherited from StyledElement)
UpdateDataValidation(AvaloniaProperty, BindingValueType, Exception)
(Inherited from AvaloniaObject)
VerifyAccess
(Inherited from AvaloniaObject)

Events

ActualThemeVariantChanged
(Inherited from StyledElement)
AttachedToLogicalTree
(Inherited from StyledElement)
DataContextChanged
(Inherited from StyledElement)
DetachedFromLogicalTree
(Inherited from StyledElement)
Initialized
(Inherited from StyledElement)
PropertyChanged
(Inherited from AvaloniaObject)
ResourcesChanged
(Inherited from StyledElement)

Fields

BackgroundProperty Defines the Background property.
FontFamilyProperty Defines the FontFamily property.
FontFeaturesProperty Defines the FontFeatures property.
FontSizeProperty Defines the FontSize property.
FontStretchProperty Defines the FontStretch property.
FontStyleProperty Defines the FontStyle property.
FontWeightProperty Defines the FontWeight property.
ForegroundProperty Defines the Foreground property.

See Also