net9.0-macos14.2
namespace AppKit
{
    [Protocol(Name = "NSTextAttachmentCell", WrapperType = typeof(NSTextAttachmentCellProtocolWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "WantsToTrackMouse", ReturnType = typeof(bool), Selector = "wantsToTrackMouse")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "DrawWithFrame", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(CGRect), typeof(NSView) }, Selector = "drawWithFrame:inView:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "DrawWithFrame", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(CGRect), typeof(NSView), typeof(UIntPtr) }, Selector = "drawWithFrame:inView:characterIndex:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "DrawWithFrame", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(CGRect), typeof(NSView), typeof(UIntPtr), typeof(NSLayoutManager) }, Selector = "drawWithFrame:inView:characterIndex:layoutManager:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "Highlight", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(bool), typeof(CGRect), typeof(NSView) }, Selector = "highlight:withFrame:inView:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "TrackMouse", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSEvent), typeof(CGRect), typeof(NSView), typeof(bool) }, ReturnType = typeof(bool), Selector = "trackMouse:inRect:ofView:untilMouseUp:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "WantsToTrackMouse", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSEvent), typeof(CGRect), typeof(NSView), typeof(UIntPtr) }, ReturnType = typeof(bool), Selector = "wantsToTrackMouseForEvent:inRect:ofView:atCharacterIndex:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "TrackMouse", ParameterByRef = new[] { false, false, false, false, false }, ParameterType = new[] { typeof(NSEvent), typeof(CGRect), typeof(NSView), typeof(UIntPtr), typeof(bool) }, ReturnType = typeof(bool), Selector = "trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp:")]
    [ProtocolMember(IsProperty = false, IsRequired = true, IsStatic = false, Name = "CellFrameForTextContainer", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSTextContainer), typeof(CGRect), typeof(CGPoint), typeof(UIntPtr) }, ReturnType = typeof(CGRect), Selector = "cellFrameForTextContainer:proposedLineFragment:glyphPosition:characterIndex:")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "cellSize", IsProperty = true, IsRequired = true, IsStatic = false, Name = "CellSize", PropertyType = typeof(CGSize), Selector = "cellSize")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "cellBaselineOffset", IsProperty = true, IsRequired = true, IsStatic = false, Name = "CellBaselineOffset", PropertyType = typeof(CGPoint), Selector = "cellBaselineOffset")]
    [ProtocolMember(ArgumentSemantic = ArgumentSemantic.None, GetterSelector = "attachment", IsProperty = true, IsRequired = true, IsStatic = false, Name = "Attachment", PropertyType = typeof(NSTextAttachment), Selector = "attachment", SetterSelector = "setAttachment:")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSTextAttachmentCellProtocol : INativeObject, IDisposable
    {
        [Preserve(Conditional = true)]
        NSTextAttachment? Attachment
        {
            [Export("attachment")]
            get;
            [Export("setAttachment:")]
            set;
        }

    }
}
.NET 6.07.08.09.0
Information specific to net9.0
Platforms This API is only available when you target a specific platform:
macOS 10.1410.1510.1611.011.111.211.312.012.112.313.013.113.314.014.2
Information specific to net9.0-macos14.2
Assembly

Microsoft.macOS , Version=14.2.0.0, PublicKeyToken=84e04ff9cfb79065

Referencing

The API is automatically referenced.

Platform Restrictions

The property getter is only supported on the following platforms:

  • Mac Catalyst
  • macOS

The property setter is only supported on the following platforms:

  • Mac Catalyst
  • macOS
  • Built-in API
  • Package-provided API

11/23/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙