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