INSLayoutManagerDelegate Interface
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Objet délégué qui expose des événements pour NSLayoutManagers.
[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
- Dérivé
- Attributs
- Implémente
Propriétés
| Nom | Description |
|---|---|
| Handle |
Handle (pointeur) vers la représentation d’objet non managée. (Hérité de INativeObject) |
Méthodes
| Nom | Description |
|---|---|
| DidChangeGeometry(NSLayoutManager, NSTextContainer, CGSize) |
La géométrie de |
| DidCompleteLayout(NSLayoutManager, NSTextContainer, Boolean) |
Indique que le NSLayoutManager spécifié a terminé la disposition du texte dans le conteneur de texte spécifié. |
| DidInvalidatedLayout(NSLayoutManager) |
Indique que NSLayoutManager a invalidé les informations de disposition (et non les informations de glyphe). |
| GetBoundingBox(NSLayoutManager, UIntPtr, NSTextContainer, CGRect, CGPoint, UIntPtr) |
Objet délégué qui expose des événements pour NSLayoutManagers. |
| GetLineSpacingAfterGlyph(NSLayoutManager, UIntPtr, CGRect) |
Objet délégué qui expose des événements pour NSLayoutManagers. |
| GetParagraphSpacingAfterGlyph(NSLayoutManager, UIntPtr, CGRect) |
Objet délégué qui expose des événements pour NSLayoutManagers. |
| GetParagraphSpacingBeforeGlyph(NSLayoutManager, UIntPtr, CGRect) |
Objet délégué qui expose des événements pour NSLayoutManagers. |
| ShouldBreakLineByHyphenatingBeforeCharacter(NSLayoutManager, UIntPtr) |
Indique si une ligne doit rompre avec un trait d’union au point spécifié. Appelé fréquemment. |
| ShouldBreakLineByWordBeforeCharacter(NSLayoutManager, UIntPtr) |
Indique si une ligne doit avoir un saut de ligne souple. Appelé fréquemment. |
| ShouldGenerateGlyphs(NSLayoutManager, IntPtr, IntPtr, IntPtr, NSFont, NSRange) |
En cas de substitution, permet au développeur d’applications de personnaliser le processus de génération de glyphe initial. |
| ShouldSetLineFragmentRect(NSLayoutManager, CGRect, CGRect, NFloat, NSTextContainer, NSRange) |
Objet délégué qui expose des événements pour NSLayoutManagers. |
| ShouldUseAction(NSLayoutManager, NSControlCharacterAction, UIntPtr) |
Action de caractère de contrôle pour le caractère de contrôle à l’index spécifié. |
| ShouldUseTemporaryAttributes(NSLayoutManager, NSDictionary<NSString,NSObject>, Boolean, UIntPtr, NSRange) |
Objet délégué qui expose des événements pour NSLayoutManagers. |