Share via


NSLayoutManager.GetBoundingRect(NSRange, NSTextContainer) Method

Definition

The bounding rectangle, in container coordinates, for the glyphs in the specified range.

[Foundation.Export("boundingRectForGlyphRange:inTextContainer:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreGraphics.CGRect GetBoundingRect(Foundation.NSRange glyphRange, UIKit.NSTextContainer container);
[<Foundation.Export("boundingRectForGlyphRange:inTextContainer:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetBoundingRect : Foundation.NSRange * UIKit.NSTextContainer -> CoreGraphics.CGRect
override this.GetBoundingRect : Foundation.NSRange * UIKit.NSTextContainer -> CoreGraphics.CGRect

Parameters

glyphRange
NSRange
container
NSTextContainer

Returns

Attributes

Remarks

The returned CGRect includes the area needed for all marks associated with the glyphs, including the area needed for glyphs that draw outside of their line fragment rectangle and for marks such as underlining.

Applies to