Share via


NSLayoutManager.GetLayoutRect Method

Definition

Overloads

GetLayoutRect(NSTextBlock, NSRange)

[Foundation.Export("layoutRectForTextBlock:glyphRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual CoreGraphics.CGRect GetLayoutRect(AppKit.NSTextBlock block, Foundation.NSRange glyphRange);
[<Foundation.Export("layoutRectForTextBlock:glyphRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLayoutRect : AppKit.NSTextBlock * Foundation.NSRange -> CoreGraphics.CGRect
override this.GetLayoutRect : AppKit.NSTextBlock * Foundation.NSRange -> CoreGraphics.CGRect

Parameters

block
NSTextBlock
glyphRange
NSRange

Returns

Attributes

Applies to

GetLayoutRect(NSTextBlock, UIntPtr)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CoreGraphics.CGRect GetLayoutRect(AppKit.NSTextBlock block, UIntPtr glyphIndex);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.GetLayoutRect : AppKit.NSTextBlock * unativeint -> CoreGraphics.CGRect

Parameters

block
NSTextBlock
glyphIndex
UIntPtr

unativeint

Returns

Attributes

Applies to

GetLayoutRect(NSTextBlock, UIntPtr, NSRange)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public CoreGraphics.CGRect GetLayoutRect(AppKit.NSTextBlock block, UIntPtr glyphIndex, out Foundation.NSRange effectiveGlyphRange);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.GetLayoutRect : AppKit.NSTextBlock * unativeint * NSRange -> CoreGraphics.CGRect

Parameters

block
NSTextBlock
glyphIndex
UIntPtr

unativeint

effectiveGlyphRange
NSRange

Returns

Attributes

Applies to

GetLayoutRect(NSTextBlock, UIntPtr, IntPtr)

[Foundation.Export("layoutRectForTextBlock:atIndex:effectiveRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual CoreGraphics.CGRect GetLayoutRect(AppKit.NSTextBlock block, UIntPtr glyphIndex, IntPtr effectiveGlyphRange);
[<Foundation.Export("layoutRectForTextBlock:atIndex:effectiveRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLayoutRect : AppKit.NSTextBlock * unativeint * nativeint -> CoreGraphics.CGRect
override this.GetLayoutRect : AppKit.NSTextBlock * unativeint * nativeint -> CoreGraphics.CGRect

Parameters

block
NSTextBlock
glyphIndex
UIntPtr

unativeint

effectiveGlyphRange
IntPtr

nativeint

Returns

Attributes

Applies to