共用方式為


NSLayoutManager.GetTextContainer 方法

定義

多載

GetTextContainer(nuint)
GetTextContainer(nuint, NSRange)
GetTextContainer(nuint, Boolean)
GetTextContainer(nuint, NSRange, Boolean)

取得 , NSTextContainer 其中包含 位於 的字元,其選項為未觸發版面配置。

GetTextContainer(nuint)

public UIKit.NSTextContainer GetTextContainer (nuint glyphIndex);
member this.GetTextContainer : nuint -> UIKit.NSTextContainer

參數

glyphIndex
System.System.UIntPtr System.unativeint

傳回

適用於

GetTextContainer(nuint, NSRange)

[Foundation.Export("textContainerForGlyphAtIndex:effectiveRange:")]
public virtual UIKit.NSTextContainer GetTextContainer (nuint glyphIndex, out Foundation.NSRange effectiveGlyphRange);
abstract member GetTextContainer : nuint *  -> UIKit.NSTextContainer
override this.GetTextContainer : nuint *  -> UIKit.NSTextContainer

參數

glyphIndex
System.System.UIntPtr System.unativeint
effectiveGlyphRange
NSRange

傳回

屬性

適用於

GetTextContainer(nuint, Boolean)

public UIKit.NSTextContainer GetTextContainer (nuint glyphIndex, bool flag);
member this.GetTextContainer : nuint * bool -> UIKit.NSTextContainer

參數

glyphIndex
System.System.UIntPtr System.unativeint
flag
Boolean

傳回

適用於

GetTextContainer(nuint, NSRange, Boolean)

取得 , NSTextContainer 其中包含 位於 的字元,其選項為未觸發版面配置。

[Foundation.Export("textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:")]
public virtual UIKit.NSTextContainer GetTextContainer (nuint glyphIndex, out Foundation.NSRange effectiveGlyphRange, bool withoutAdditionalLayout);
abstract member GetTextContainer : nuint *  * bool -> UIKit.NSTextContainer
override this.GetTextContainer : nuint *  * bool -> UIKit.NSTextContainer

參數

glyphIndex
System.System.UIntPtr System.unativeint

要求 rect 之圖像的索引。

effectiveGlyphRange
NSRange

如果不是 null ,則為行片段中所有字元的範圍。

withoutAdditionalLayout
Boolean

如果 true 為 ,則不會執行字元產生和版面配置。

傳回

屬性

適用於