Struct RichFontSize
- Namespace
- RichEdit.Core
- Assembly
- RichEdit.Core.dll
A positive font size represented in RTF half-points.
public readonly record struct RichFontSize : IEquatable<RichFontSize>
- Implements
- Inherited Members
Constructors
RichFontSize(int)
Creates a positive font size in half-points.
public RichFontSize(int halfPoints)
Parameters
halfPointsint
Properties
HalfPoints
Gets the exact RTF half-point value.
public int HalfPoints { get; }
Property Value
Points
Gets the size in typographic points.
public double Points { get; }
Property Value
Methods
FromPoints(double)
Quantizes positive points to the nearest positive half-point.
public static RichFontSize FromPoints(double points)
Parameters
pointsdouble