Inline Class
Definition
Inline element.
public class Inline
Methods
GetTextDecorations Method
Gets the value of the attached Avalonia.Controls.Documents.Inline.TextDecorationsProperty on a control.
public Avalonia.Media.TextDecorationCollection GetTextDecorations(Avalonia.Controls.Control control)
Parameters
control Avalonia.Controls.Control
The control.
Returns
Avalonia.Media.TextDecorationCollection
The font style.
SetTextDecorations Method
Sets the value of the attached Avalonia.Controls.Documents.Inline.TextDecorationsProperty on a control.
public void SetTextDecorations(Avalonia.Controls.Control control, Avalonia.Media.TextDecorationCollection value)
Parameters
control Avalonia.Controls.Control
The control.
value Avalonia.Media.TextDecorationCollection
The property value to set.
Properties
| Name | Description |
|---|---|
| BaselineAlignment | Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text. |
| TextDecorations | The TextDecorations property specifies decorations that are added to the text of an element. |
| Background | Gets or sets a brush used to paint the control's background. Inherited from TextElement. |
| FontFamily | Gets or sets the font family. Inherited from TextElement. |
| FontFeatures | Gets or sets the font features. Inherited from TextElement. |
| FontSize | Gets or sets the font size. Inherited from TextElement. |
| FontStretch | Gets or sets the font stretch. Inherited from TextElement. |
| FontStyle | Gets or sets the font style. Inherited from TextElement. |
| FontWeight | Gets or sets the font weight. Inherited from TextElement. |
| Foreground | Gets or sets a brush used to paint the text. Inherited from TextElement. |
| LetterSpacing | Gets or sets the letter spacing. Inherited from TextElement. |
| ActualThemeVariant | Gets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty. Inherited from StyledElement. |
| Classes | Gets or sets the styled element's classes. Inherited from StyledElement. |
| DataContext | Gets or sets the control's data context. Inherited from StyledElement. |
| IsInitialized | Gets a value that indicates whether the element has finished initialization. Inherited from StyledElement. |
| Name | Gets or sets the name of the styled element. Inherited from StyledElement. |
| Parent | Gets the styled element's logical parent. Inherited from StyledElement. |
| Resources | Gets or sets the styled element's resource dictionary. Inherited from StyledElement. |
| StyleKey | Gets the type by which the element is styled. Inherited from StyledElement. |
| Styles | Gets the styles for the styled element. Inherited from StyledElement. |
| TemplatedParent | Gets the styled element whose lookless template this styled element is part of. Inherited from StyledElement. |
| Theme | Gets or sets the theme to be applied to the element. Inherited from StyledElement. |
| Transitions | Gets or sets the property transitions for the control. Inherited from Animatable. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
BaselineAlignment Property
Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.
public Avalonia.Media.BaselineAlignment BaselineAlignment { get; set; }
TextDecorations Property
The TextDecorations property specifies decorations that are added to the text of an element.
public Avalonia.Media.TextDecorationCollection TextDecorations { get; set; }
Fields
BaselineAlignmentProperty Field
AvaloniaProperty for Avalonia.Controls.Documents.Inline.BaselineAlignment property.
public Avalonia.StyledProperty<Avalonia.Media.BaselineAlignment> BaselineAlignmentProperty
TextDecorationsProperty Field
AvaloniaProperty for Avalonia.Controls.Documents.Inline.TextDecorations property.
public Avalonia.AttachedProperty<Avalonia.Media.TextDecorationCollection> TextDecorationsProperty
Events
| Name | Description |
|---|---|
| ActualThemeVariantChanged | Raised when the theme variant is changed on the element or an ancestor of the element. Inherited from StyledElement. |
| AttachedToLogicalTree | Raised when the styled element is attached to a rooted logical tree. Inherited from StyledElement. |
| DataContextChanged | Occurs when the Avalonia.StyledElement.DataContext property changes. Inherited from StyledElement. |
| DetachedFromLogicalTree | Raised when the styled element is detached from a rooted logical tree. Inherited from StyledElement. |
| Initialized | Occurs when the styled element has finished initialization. Inherited from StyledElement. |
| ResourcesChanged | Occurs when a resource in this styled element or a parent styled element has changed. Inherited from StyledElement. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |