A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
882 B

namespace Avalonia.Media
{
/// <summary>
/// Stores information about a line of <see cref="FormattedText"/>.
/// </summary>
public class FormattedTextLine
{
/// <summary>
/// Initializes a new instance of the <see cref="FormattedTextLine"/> class.
/// </summary>
/// <param name="length">The length of the line, in characters.</param>
/// <param name="height">The height of the line, in pixels.</param>
public FormattedTextLine(int length, double height)
{
Length = length;
Height = height;
}
/// <summary>
/// Gets the length of the line, in characters.
/// </summary>
public int Length { get; }
/// <summary>
/// Gets the height of the line, in pixels.
/// </summary>
public double Height { get; }
}
}