Share via


NSLayoutManager.EnsureLayoutForTextContainer(NSTextContainer) Method

Definition

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

[Foundation.Export("ensureLayoutForTextContainer:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void EnsureLayoutForTextContainer(AppKit.NSTextContainer container);
[<Foundation.Export("ensureLayoutForTextContainer:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member EnsureLayoutForTextContainer : AppKit.NSTextContainer -> unit
override this.EnsureLayoutForTextContainer : AppKit.NSTextContainer -> unit

Parameters

container
NSTextContainer
Attributes

Remarks

The NSLayoutManager may layout more than the specified container. If AllowsNonContiguousLayout is false, the range will always extend to the beginning of the text.

Applies to