Table of Contents

TUIFont.GetWidth Method

Returns the width of a string in device-independent pixels at dpi resolution when written in the current font.

Syntax

Namespace: FlexCel.Core

public abstract Double GetWidth(String aText, Int32 dpi, TFlxReadingOrder aReadingOrder)

Parameters

<-> Parameter Type Description
aText String Text we want to measure.
dpi Int32 Dpi to measure the string.
aReadingOrder TFlxReadingOrder Reading order for the document where the string is.

See also