NSLayoutManager.GetLineFragmentRect 方法

定义

重载

GetLineFragmentRect(nuint, NSRange, Boolean)

获取包含 处的字形的行片段 CGRect ,选项为 不触发布局。

GetLineFragmentRect(nuint, Boolean)
GetLineFragmentRect(nuint, IntPtr)
GetLineFragmentRect(nuint)
GetLineFragmentRect(nuint, NSRange)

GetLineFragmentRect(nuint, NSRange, Boolean)

获取包含 处的字形的行片段 CGRect ,选项为 不触发布局。

[Foundation.Export("lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGRect GetLineFragmentRect (nuint glyphIndex, out Foundation.NSRange effectiveGlyphRange, bool withoutAdditionalLayout);
abstract member GetLineFragmentRect : nuint *  * bool -> CoreGraphics.CGRect
override this.GetLineFragmentRect : nuint *  * bool -> CoreGraphics.CGRect

参数

glyphIndex
System.System.UIntPtr System.unativeint

为其请求 rect 的字形的索引。

effectiveGlyphRange
NSRange

如果不是 null,则为行片段中所有字形的范围。

withoutAdditionalLayout
Boolean

如果 true为 ,则不执行字形生成和布局。

返回

属性

适用于

GetLineFragmentRect(nuint, Boolean)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public CoreGraphics.CGRect GetLineFragmentRect (nuint glyphIndex, bool withoutAdditionalLayout);
member this.GetLineFragmentRect : nuint * bool -> CoreGraphics.CGRect

参数

glyphIndex
System.System.UIntPtr System.unativeint
withoutAdditionalLayout
Boolean

返回

属性

适用于

GetLineFragmentRect(nuint, IntPtr)

[Foundation.Export("lineFragmentRectForGlyphAtIndex:effectiveRange:")]
protected virtual CoreGraphics.CGRect GetLineFragmentRect (nuint glyphIndex, IntPtr effectiveGlyphRange);
abstract member GetLineFragmentRect : nuint * nativeint -> CoreGraphics.CGRect
override this.GetLineFragmentRect : nuint * nativeint -> CoreGraphics.CGRect

参数

glyphIndex
System.System.UIntPtr System.unativeint
effectiveGlyphRange
IntPtr

nativeint

返回

属性

适用于

GetLineFragmentRect(nuint)

public CoreGraphics.CGRect GetLineFragmentRect (nuint glyphIndex);
member this.GetLineFragmentRect : nuint -> CoreGraphics.CGRect

参数

glyphIndex
System.System.UIntPtr System.unativeint

返回

适用于

GetLineFragmentRect(nuint, NSRange)

public CoreGraphics.CGRect GetLineFragmentRect (nuint glyphIndex, out Foundation.NSRange effectiveGlyphRange);
member this.GetLineFragmentRect : nuint *  -> CoreGraphics.CGRect

参数

glyphIndex
System.System.UIntPtr System.unativeint
effectiveGlyphRange
NSRange

返回

适用于