NSLayoutManagerDelegate_Extensions NSLayoutManagerDelegate_Extensions Class

Definition

Extension methods to the INSLayoutManagerDelegate interface to support all the methods from the NSLayoutManagerDelegate protocol.

public static class NSLayoutManagerDelegate_Extensions
type NSLayoutManagerDelegate_Extensions = class
Inheritance
NSLayoutManagerDelegate_ExtensionsNSLayoutManagerDelegate_Extensions

Remarks

The extension methods for INSLayoutManagerDelegate allow developers to treat instances of the interface as having all the optional methods of the original NSLayoutManagerDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

BoundingBoxForControlGlyph(INSLayoutManagerDelegate, NSLayoutManager, nuint, NSTextContainer, CGRect, CGPoint, nuint) BoundingBoxForControlGlyph(INSLayoutManagerDelegate, NSLayoutManager, nuint, NSTextContainer, CGRect, CGPoint, nuint)
DidChangeGeometry(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, CGSize) DidChangeGeometry(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, CGSize)

The geometry of textContainer changed from oldSize, and layoutManager will invalidate the layout.

DidCompleteLayout(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, Boolean) DidCompleteLayout(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, Boolean)

Indicates that the specified NSLayoutManager has finished laying out text in the specified text container.

DidInvalidatedLayout(INSLayoutManagerDelegate, NSLayoutManager) DidInvalidatedLayout(INSLayoutManagerDelegate, NSLayoutManager)

Indicates that the NSLayoutManager has invalidated layout information (not glyph information).

LineSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect) LineSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

The line spacing after the line ending with the specified glyph index.

ParagraphSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect) ParagraphSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

The paragraph spacing after the line ending with the specified glyph index.

ParagraphSpacingBeforeGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect) ParagraphSpacingBeforeGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

The paragraph spacing before the line starting with the specified glyph index.

ShouldBreakLineByHyphenatingBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint) ShouldBreakLineByHyphenatingBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint)

Whether a line should break with a hyphen at the specified point. Called frequently.

ShouldBreakLineByWordBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint) ShouldBreakLineByWordBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint)

Whether a line should have a soft line break. Called frequently.

ShouldGenerateGlyphs(INSLayoutManagerDelegate, NSLayoutManager, IntPtr, IntPtr, IntPtr, UIFont, NSRange) ShouldGenerateGlyphs(INSLayoutManagerDelegate, NSLayoutManager, IntPtr, IntPtr, IntPtr, UIFont, NSRange)

When overridden, allows the app developer to customize the initial glyph generation process.

ShouldSetLineFragmentRect(INSLayoutManagerDelegate, NSLayoutManager, CGRect, CGRect, nfloat, NSTextContainer, NSRange) ShouldSetLineFragmentRect(INSLayoutManagerDelegate, NSLayoutManager, CGRect, CGRect, nfloat, NSTextContainer, NSRange)
ShouldUseAction(INSLayoutManagerDelegate, NSLayoutManager, NSControlCharacterAction, nuint) ShouldUseAction(INSLayoutManagerDelegate, NSLayoutManager, NSControlCharacterAction, nuint)

The control character action for the control character at the specified index.

Applies to