NSLayoutManager.GetLineFragmentRect 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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