Edit

Share via


CTLine.GetTypographicBounds Method

Definition

Overloads

GetTypographicBounds()

Returns the typorgraphic width of the line.

GetTypographicBounds(nfloat, nfloat, nfloat)

Returns the typographic information about the line.

GetTypographicBounds()

Returns the typorgraphic width of the line.

public double GetTypographicBounds ();
member this.GetTypographicBounds : unit -> double

Returns

The width of the line, or zero if there are any errors.

Remarks

Use the M:CoreText.CTLine.GetTypographicBounds(out float, out float, out float) method to retrieve more information about the typographical features of the line.

Starting with iOS 6.0, the GetBounds(CTLineBoundsOptions) provides finer typorgraphical information than this method.

Applies to

GetTypographicBounds(nfloat, nfloat, nfloat)

Returns the typographic information about the line.

public double GetTypographicBounds (out nfloat ascent, out nfloat descent, out nfloat leading);
member this.GetTypographicBounds :  *  *  -> double

Parameters

ascent
nfloat

Returns the ascent of the line.

descent
nfloat

Returns the descent of the line.

leading
nfloat

Returns the leading of the line.

Returns

The width of the line, or zero if there are any errors.

Remarks

Starting with iOS 6.0, the GetBounds(CTLineBoundsOptions) provides finer typorgraphical information than this method.

Applies to