Share via


NSLayoutManager.EnsureLayoutForCharacterRange(NSRange) Method

Definition

Forces the NSLayoutManager to layout the specified characters, if it has not already done so.

[Foundation.Export("ensureLayoutForCharacterRange:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void EnsureLayoutForCharacterRange(Foundation.NSRange characterRange);
[<Foundation.Export("ensureLayoutForCharacterRange:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member EnsureLayoutForCharacterRange : Foundation.NSRange -> unit
override this.EnsureLayoutForCharacterRange : Foundation.NSRange -> unit

Parameters

characterRange
NSRange
Attributes

Remarks

The NSLayoutManager may layout an area larger than the characterRange. If AllowsNonContiguousLayout is false, the range will always extend to the beginning of the text.

Applies to