Table of Contents

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

halfPoints int

Properties

HalfPoints

Gets the exact RTF half-point value.

public int HalfPoints { get; }

Property Value

int

Points

Gets the size in typographic points.

public double Points { get; }

Property Value

double

Methods

FromPoints(double)

Quantizes positive points to the nearest positive half-point.

public static RichFontSize FromPoints(double points)

Parameters

points double

Returns

RichFontSize