Skip to main content

ImmutableTextDecoration Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

An immutable representation of a Avalonia.Media.TextDecoration.

public class ImmutableTextDecoration

Inheritance: object -> ImmutableTextDecoration

Constructors​

NameDescription
ImmutableTextDecorationNo summary available.

ImmutableTextDecoration Constructor​

public ImmutableTextDecoration(Avalonia.Media.TextDecorationLocation location, Avalonia.Media.Immutable.ImmutablePen pen, Avalonia.Media.TextDecorationUnit penThicknessUnit, double penOffset, Avalonia.Media.TextDecorationUnit penOffsetUnit)

Parameters​

location Avalonia.Media.TextDecorationLocation

pen Avalonia.Media.Immutable.ImmutablePen

penThicknessUnit Avalonia.Media.TextDecorationUnit

penOffset double

penOffsetUnit Avalonia.Media.TextDecorationUnit

Properties​

NameDescription
LocationGets or sets the location.
PenGets or sets the pen.
PenOffsetGets or sets the pen offset.
PenOffsetUnitGets the units in which the Avalonia.Media.Immutable.ImmutableTextDecoration.PenOffset value is expressed.
PenThicknessUnitGets the units in which the Thickness of the text decoration's Avalonia.Media.Immutable.ImmutableTextDecoration.Pen is expressed.

Location Property​

Gets or sets the location.

public Avalonia.Media.TextDecorationLocation Location { get; set; }

Value​

The location.

Pen Property​

Gets or sets the pen.

public Avalonia.Media.Immutable.ImmutablePen Pen { get; set; }

Value​

The pen.

PenOffset Property​

Gets or sets the pen offset.

public double PenOffset { get; set; }

Value​

The pen offset.

PenOffsetUnit Property​

Gets the units in which the Avalonia.Media.Immutable.ImmutableTextDecoration.PenOffset value is expressed.

public Avalonia.Media.TextDecorationUnit PenOffsetUnit { get; set; }

PenThicknessUnit Property​

Gets the units in which the Thickness of the text decoration's Avalonia.Media.Immutable.ImmutableTextDecoration.Pen is expressed.

public Avalonia.Media.TextDecorationUnit PenThicknessUnit { get; set; }