INSLayoutManagerDelegate 介面

定義

一個代表物件,能揭露事件 s NSLayoutManager

[Foundation.Protocol(Name="NSLayoutManagerDelegate", WrapperType=typeof(AppKit.NSLayoutManagerDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidInvalidatedLayout", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager) }, Selector="layoutManagerDidInvalidateLayout:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidCompleteLayout", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSTextContainer), typeof(System.Boolean) }, Selector="layoutManager:didCompleteLayoutForTextContainer:atEnd:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldUseTemporaryAttributes", ParameterByRef=new System.Boolean[] { false, false, false, false, true }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), typeof(System.Boolean), typeof(System.UIntPtr), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), Selector="layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldGenerateGlyphs", ParameterByRef=new System.Boolean[] { false, false, false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.IntPtr), typeof(System.IntPtr), typeof(System.IntPtr), typeof(AppKit.NSFont), typeof(Foundation.NSRange) }, ReturnType=typeof(System.UIntPtr), Selector="layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLineSpacingAfterGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetParagraphSpacingBeforeGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetParagraphSpacingAfterGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldUseAction", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSControlCharacterAction), typeof(System.UIntPtr) }, ReturnType=typeof(AppKit.NSControlCharacterAction), Selector="layoutManager:shouldUseAction:forControlCharacterAtIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldBreakLineByWordBeforeCharacter", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldBreakLineByWordBeforeCharacterAtIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldBreakLineByHyphenatingBeforeCharacter", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldBreakLineByHyphenatingBeforeCharacterAtIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetBoundingBox", ParameterByRef=new System.Boolean[] { false, false, false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(AppKit.NSTextContainer), typeof(CoreGraphics.CGRect), typeof(CoreGraphics.CGPoint), typeof(System.UIntPtr) }, ReturnType=typeof(CoreGraphics.CGRect), Selector="layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidChangeGeometry", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSTextContainer), typeof(CoreGraphics.CGSize) }, Selector="layoutManager:textContainer:didChangeGeometryFromSize:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldSetLineFragmentRect", ParameterByRef=new System.Boolean[] { false, true, true, true, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(CoreGraphics.CGRect), typeof(CoreGraphics.CGRect), typeof(System.Runtime.InteropServices.NFloat), typeof(AppKit.NSTextContainer), typeof(Foundation.NSRange) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:")]
public interface INSLayoutManagerDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSLayoutManagerDelegate", WrapperType=typeof(AppKit.NSLayoutManagerDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidInvalidatedLayout", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager) }, Selector="layoutManagerDidInvalidateLayout:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidCompleteLayout", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSTextContainer), typeof(System.Boolean) }, Selector="layoutManager:didCompleteLayoutForTextContainer:atEnd:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldUseTemporaryAttributes", ParameterByRef=new System.Boolean[] { false, false, false, false, true }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), typeof(System.Boolean), typeof(System.UIntPtr), typeof(Foundation.NSRange) }, ReturnType=typeof(Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>), Selector="layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldGenerateGlyphs", ParameterByRef=new System.Boolean[] { false, false, false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.IntPtr), typeof(System.IntPtr), typeof(System.IntPtr), typeof(AppKit.NSFont), typeof(Foundation.NSRange) }, ReturnType=typeof(System.UIntPtr), Selector="layoutManager:shouldGenerateGlyphs:properties:characterIndexes:font:forGlyphRange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLineSpacingAfterGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetParagraphSpacingBeforeGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetParagraphSpacingAfterGlyph", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(CoreGraphics.CGRect) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="layoutManager:paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldUseAction", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSControlCharacterAction), typeof(System.UIntPtr) }, ReturnType=typeof(AppKit.NSControlCharacterAction), Selector="layoutManager:shouldUseAction:forControlCharacterAtIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldBreakLineByWordBeforeCharacter", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldBreakLineByWordBeforeCharacterAtIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldBreakLineByHyphenatingBeforeCharacter", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldBreakLineByHyphenatingBeforeCharacterAtIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetBoundingBox", ParameterByRef=new System.Boolean[] { false, false, false, false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(System.UIntPtr), typeof(AppKit.NSTextContainer), typeof(CoreGraphics.CGRect), typeof(CoreGraphics.CGPoint), typeof(System.UIntPtr) }, ReturnType=typeof(CoreGraphics.CGRect), Selector="layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidChangeGeometry", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(AppKit.NSTextContainer), typeof(CoreGraphics.CGSize) }, Selector="layoutManager:textContainer:didChangeGeometryFromSize:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldSetLineFragmentRect", ParameterByRef=new System.Boolean[] { false, true, true, true, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSLayoutManager), typeof(CoreGraphics.CGRect), typeof(CoreGraphics.CGRect), typeof(System.Runtime.InteropServices.NFloat), typeof(AppKit.NSTextContainer), typeof(Foundation.NSRange) }, ReturnType=typeof(System.Boolean), Selector="layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:")>]
type INSLayoutManagerDelegate = interface
    interface INativeObject
    interface IDisposable
衍生
屬性
實作

屬性

名稱 Description
Handle

Handle(指標)指向未管理物件表示。

(繼承來源 INativeObject)

方法

名稱 Description
DidChangeGeometry(NSLayoutManager, NSTextContainer, CGSize)

textContainer何形狀從 改變,oldSizelayoutManager會使該佈局失效。

DidCompleteLayout(NSLayoutManager, NSTextContainer, Boolean)

表示指定的 NSLayoutManager 已完成在指定文字容器中排版文字。

DidInvalidatedLayout(NSLayoutManager)

表示 NSLayoutManager 已使版面資訊失效(非字形資訊)。

GetBoundingBox(NSLayoutManager, UIntPtr, NSTextContainer, CGRect, CGPoint, UIntPtr)

一個代表物件,能揭露事件 s NSLayoutManager

GetLineSpacingAfterGlyph(NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

GetParagraphSpacingAfterGlyph(NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

GetParagraphSpacingBeforeGlyph(NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

ShouldBreakLineByHyphenatingBeforeCharacter(NSLayoutManager, UIntPtr)

行是否應該在指定點以連字號分開。 經常打電話。

ShouldBreakLineByWordBeforeCharacter(NSLayoutManager, UIntPtr)

一條線是否應該有軟的換行。 經常打電話。

ShouldGenerateGlyphs(NSLayoutManager, IntPtr, IntPtr, IntPtr, NSFont, NSRange)

當被覆寫時,應用程式開發者可以自訂初始的字形產生流程。

ShouldSetLineFragmentRect(NSLayoutManager, CGRect, CGRect, NFloat, NSTextContainer, NSRange)

一個代表物件,能揭露事件 s NSLayoutManager

ShouldUseAction(NSLayoutManager, NSControlCharacterAction, UIntPtr)

控制字元在指定索引的控制字元動作。

ShouldUseTemporaryAttributes(NSLayoutManager, NSDictionary<NSString,NSObject>, Boolean, UIntPtr, NSRange)

一個代表物件,能揭露事件 s NSLayoutManager

擴充方法

名稱 Description
DidChangeGeometry(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, CGSize)

textContainer何形狀從 改變,oldSizelayoutManager會使該佈局失效。

DidCompleteLayout(INSLayoutManagerDelegate, NSLayoutManager, NSTextContainer, Boolean)

表示指定的 NSLayoutManager 已完成在指定文字容器中排版文字。

DidInvalidatedLayout(INSLayoutManagerDelegate, NSLayoutManager)

表示 NSLayoutManager 已使版面資訊失效(非字形資訊)。

GetBoundingBox(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr, NSTextContainer, CGRect, CGPoint, UIntPtr)

一個代表物件,能揭露事件 s NSLayoutManager

GetHandle(INativeObject)

一個代表物件,能揭露事件 s NSLayoutManager

GetLineSpacingAfterGlyph(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

GetNonNullHandle(INativeObject, String)

一個代表物件,能揭露事件 s NSLayoutManager

GetParagraphSpacingAfterGlyph(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

GetParagraphSpacingBeforeGlyph(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr, CGRect)

一個代表物件,能揭露事件 s NSLayoutManager

ShouldBreakLineByHyphenatingBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr)

行是否應該在指定點以連字號分開。 經常打電話。

ShouldBreakLineByWordBeforeCharacter(INSLayoutManagerDelegate, NSLayoutManager, UIntPtr)

一條線是否應該有軟的換行。 經常打電話。

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

當被覆寫時,應用程式開發者可以自訂初始的字形產生流程。

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

一個代表物件,能揭露事件 s NSLayoutManager

ShouldUseAction(INSLayoutManagerDelegate, NSLayoutManager, NSControlCharacterAction, UIntPtr)

控制字元在指定索引的控制字元動作。

ShouldUseTemporaryAttributes(INSLayoutManagerDelegate, NSLayoutManager, NSDictionary<NSString,NSObject>, Boolean, UIntPtr, NSRange)

一個代表物件,能揭露事件 s NSLayoutManager

適用於

另請參閱