NSLayoutManager.AllowsNonContiguousLayout Property

Definition

Whether layout can be done for a portion of the document without laying-out being recalculated from the beginning.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AllowsNonContiguousLayout { [Foundation.Export("allowsNonContiguousLayout")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setAllowsNonContiguousLayout:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.AllowsNonContiguousLayout : bool with get, set

Property Value

The default value is false.

Attributes

Remarks

Setting this value to true allows the NSLayoutManager to perform noncontiguous layout. In large documents, this can significantly increase performance, since the layout does not need to performed from the beginning of the document.

Application developers can use the EnsureLayout... methods with noncontiguous methods to confirm that particular portions of the text are being laid out properly.

The LayoutManager is instantiated with its AllowsNonContiguousLayout property set to true.

Applies to

See also

  • HasNonContiguousLayout
  • <xref:UIKit.NSLayoutManager.EnsureGlyphsForCharacterRange>
  • <xref:UIKit.NSLayoutManager.EnsureGlyphsForGlyphRange>
  • <xref:UIKit.NSLayoutManager.EnsureLayoutForCharacterRange>
  • <xref:UIKit.NSLayoutManager.EnsureLayoutForGlyphRange>
  • <xref:UIKit.NSLayoutManager.EnsureLayoutForTextContainer>
  • <xref:UIKit.NSLayoutManager.EnsureLayoutForBoundingRect>