INSLayoutManagerDelegate 接口

定义

表示所需方法的接口 ((如果协议 NSLayoutManagerDelegate有任何) )。

[Foundation.Protocol(Name="NSLayoutManagerDelegate", WrapperType=typeof(UIKit.NSLayoutManagerDelegateWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface INSLayoutManagerDelegate : IDisposable, ObjCRuntime.INativeObject
type INSLayoutManagerDelegate = interface
    interface INativeObject
    interface IDisposable
派生
属性
实现

注解

此接口包含所需的方法 ((如果任何) 由 NSLayoutManagerDelegate定义的协议)。

如果开发人员创建实现此接口的类,则实现方法将自动导出到 Objective-C,并使用协议中 NSLayoutManagerDelegate 定义的方法的匹配签名。

可选方法 (类是否提供 NSLayoutManagerDelegate_Extensions 任何) 作为接口的扩展方法,从而允许开发人员在协议上调用任何可选方法。

属性

Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 INativeObject)

扩展方法

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

表示所需方法的接口 ((如果协议 NSLayoutManagerDelegate有任何) )。

DidChangeGeometry(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, CGSize)

textContainer 几何图形已从 oldSize更改,并将 layoutManager 使布局失效。

DidCompleteLayout(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, Boolean)

指示指定的 NSLayoutManager 已完成对指定文本容器中的文本进行布局。

DidInvalidatedLayout(INSLayoutManagerDelegate, NSLayoutManager)

指示 NSLayoutManager 已使布局信息 (非字形信息) 无效。

LineSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

以指定字形索引结尾的行距。

ParagraphSpacingAfterGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

行后以指定字形索引结尾的段落间距。

ParagraphSpacingBeforeGlyphAtIndex(INSLayoutManagerDelegate, NSLayoutManager, nuint, CGRect)

以指定字形索引开头的行前的段落间距。

ShouldBreakLineByHyphenatingBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint)

行是否应在指定点处使用连字符进行中断。 经常调用。

ShouldBreakLineByWordBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, nuint)

行是否应具有软换行符。 经常调用。

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

重写后,允许应用开发人员自定义初始字形生成过程。

ShouldSetLineFragmentRect(INSLayoutManagerDelegate, NSLayoutManager, CGRect, CGRect, nfloat, NSTextContainer, NSRange)

表示所需方法的接口 ((如果协议 NSLayoutManagerDelegate有任何) )。

ShouldUseAction(INSLayoutManagerDelegate, NSLayoutManager, NSControlCharacterAction, nuint)

指定索引处控件字符的控件字符操作。

适用于