Share via


CTLine Class

Definition

A line of text, comprising an array of CTRuns.

public class CTLine : CoreFoundation.NativeObject
type CTLine = class
    inherit NativeObject
Inheritance

Constructors

Name Description
CTLine(NSAttributedString)

Properties

Name Description
GlyphCount
Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)
StringRange
TrailingWhitespaceWidth

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Draw(CGContext)
EnumerateCaretOffsets(CTLine+CaretEdgeEnumerator)
Equals(Object) (Inherited from DisposableObject)
GetBounds(CTLineBoundsOptions)

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

GetCheckedHandle() (Inherited from DisposableObject)
GetGlyphRuns()
GetHashCode() (Inherited from DisposableObject)
GetImageBounds(CGContext)
GetJustifiedLine(NFloat, Double)
GetOffsetForStringIndex(IntPtr, NFloat)
GetOffsetForStringIndex(IntPtr)
GetPenOffsetForFlush(NFloat, Double)
GetStringIndexForPosition(CGPoint)
GetTruncatedLine(Double, CTLineTruncation, CTLine)
GetTypographicBounds()

Returns the typorgraphic width of the line.

GetTypographicBounds(NFloat, NFloat, NFloat)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also