共用方式為


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

傳回

適用於