Edit

Share via


CTLine Class

Definition

A line of text, comprising an array of CTRuns.

public class CTLine : IDisposable, ObjCRuntime.INativeObject
type CTLine = class
    interface INativeObject
    interface IDisposable
Inheritance
CTLine
Implements

Constructors

CTLine(NSAttributedString)

Properties

GlyphCount
Handle

Handle (pointer) to the unmanaged object representation.

StringRange
TrailingWhitespaceWidth

Methods

Dispose()

Releases the resources used by the CTLine object.

Dispose(Boolean)

Releases the resources used by the CTLine object.

Draw(CGContext)
EnumerateCaretOffsets(CTLine+CaretEdgeEnumerator)
Finalize()

Finalizer for the CTLine object

GetBounds(CTLineBoundsOptions)

Returns the bounds of the line as a rectangle, based on the specified CTLineBoundsOptions.

GetGlyphRuns()
GetImageBounds(CGContext)
GetJustifiedLine(nfloat, Double)
GetOffsetForStringIndex(nint, nfloat)
GetOffsetForStringIndex(nint)
GetPenOffsetForFlush(nfloat, Double)
GetStringIndexForPosition(CGPoint)
GetTruncatedLine(Double, CTLineTruncation, CTLine)
GetTypographicBounds()

Returns the typorgraphic width of the line.

GetTypographicBounds(nfloat, nfloat, nfloat)

Returns the typographic information about the line.

Applies to

See also