Table of Contents

Struct RichLength

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

A physical document length with RTF twip precision: twenty twips per point.

public readonly record struct RichLength : IEquatable<RichLength>
Implements
Inherited Members

Constructors

RichLength(int)

A physical document length with RTF twip precision: twenty twips per point.

public RichLength(int Twips)

Parameters

Twips int

Properties

Points

Gets the length in typographic points.

public double Points { get; }

Property Value

double

Twips

public int Twips { get; init; }

Property Value

int

Methods

FromPoints(double)

Quantizes points to the nearest twip, with midpoints rounded away from zero.

public static RichLength FromPoints(double points)

Parameters

points double

Returns

RichLength