|
|
|
@ -13,9 +13,10 @@ namespace Avalonia.Controls.Documents |
|
|
|
/// <summary>
|
|
|
|
/// AvaloniaProperty for <see cref="TextDecorations" /> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<TextDecorationCollection?> TextDecorationsProperty = |
|
|
|
AvaloniaProperty.Register<Inline, TextDecorationCollection?>( |
|
|
|
nameof(TextDecorations)); |
|
|
|
public static readonly AttachedProperty<TextDecorationCollection?> TextDecorationsProperty = |
|
|
|
AvaloniaProperty.RegisterAttached<Inline, Inline, TextDecorationCollection?>( |
|
|
|
nameof(TextDecorations), |
|
|
|
inherits: true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// AvaloniaProperty for <see cref="BaselineAlignment" /> property.
|
|
|
|
@ -43,7 +44,27 @@ namespace Avalonia.Controls.Documents |
|
|
|
get { return GetValue(BaselineAlignmentProperty); } |
|
|
|
set { SetValue(BaselineAlignmentProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the value of the attached <see cref="TextDecorationsProperty"/> on a control.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="control">The control.</param>
|
|
|
|
/// <returns>The font style.</returns>
|
|
|
|
public static TextDecorationCollection? GetTextDecorations(Control control) |
|
|
|
{ |
|
|
|
return control.GetValue(TextDecorationsProperty); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Sets the value of the attached <see cref="TextDecorationsProperty"/> on a control.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="control">The control.</param>
|
|
|
|
/// <param name="value">The property value to set.</param>
|
|
|
|
public static void SetTextDecorations(Control control, TextDecorationCollection? value) |
|
|
|
{ |
|
|
|
control.SetValue(TextDecorationsProperty, value); |
|
|
|
} |
|
|
|
|
|
|
|
internal abstract void BuildTextRun(IList<TextRun> textRuns); |
|
|
|
|
|
|
|
internal abstract void AppendText(StringBuilder stringBuilder); |
|
|
|
|