IUIMenuLeaf Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This interface represents the Objective-C protocol UIMenuLeaf.
[Foundation.Protocol(Name="UIMenuLeaf", WrapperType=typeof(UIKit.UIMenuLeafWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Target", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSObject) }, Selector="performWithSender:target:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="title", IsProperty=true, IsRequired=true, IsStatic=false, Name="Title", PropertyType=typeof(System.String), Selector="title", SetterSelector="setTitle:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="image", IsProperty=true, IsRequired=true, IsStatic=false, Name="Image", PropertyType=typeof(UIKit.UIImage), Selector="image", SetterSelector="setImage:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="discoverabilityTitle", IsProperty=true, IsRequired=true, IsStatic=false, Name="DiscoverabilityTitle", PropertyType=typeof(System.String), Selector="discoverabilityTitle", SetterSelector="setDiscoverabilityTitle:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="attributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="Attributes", PropertyType=typeof(UIKit.UIMenuElementAttributes), Selector="attributes", SetterSelector="setAttributes:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="state", IsProperty=true, IsRequired=true, IsStatic=false, Name="State", PropertyType=typeof(UIKit.UIMenuElementState), Selector="state", SetterSelector="setState:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="sender", IsProperty=true, IsRequired=true, IsStatic=false, Name="Sender", PropertyType=typeof(Foundation.NSObject), Selector="sender")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="presentationSourceItem", IsProperty=true, IsRequired=true, IsStatic=false, Name="PresentationSourceItem", PropertyType=typeof(UIKit.IUIPopoverPresentationControllerSourceItem), Selector="presentationSourceItem")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="repeatBehavior", IsProperty=true, IsRequired=true, IsStatic=false, Name="RepeatBehavior", PropertyType=typeof(UIKit.UIMenuElementRepeatBehavior), Selector="repeatBehavior", SetterSelector="setRepeatBehavior:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="selectedImage", IsProperty=true, IsRequired=false, IsStatic=false, Name="SelectedImage", PropertyType=typeof(UIKit.UIImage), Selector="selectedImage", SetterSelector="setSelectedImage:")]
public interface IUIMenuLeaf : IDisposable, ObjCRuntime.INativeObject
[Foundation.Protocol(Name="UIMenuLeaf", WrapperType=typeof(UIKit.UIMenuLeafWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Target", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSObject) }, Selector="performWithSender:target:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="title", IsProperty=true, IsRequired=true, IsStatic=false, Name="Title", PropertyType=typeof(System.String), Selector="title", SetterSelector="setTitle:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="image", IsProperty=true, IsRequired=true, IsStatic=false, Name="Image", PropertyType=typeof(UIKit.UIImage), Selector="image", SetterSelector="setImage:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="discoverabilityTitle", IsProperty=true, IsRequired=true, IsStatic=false, Name="DiscoverabilityTitle", PropertyType=typeof(System.String), Selector="discoverabilityTitle", SetterSelector="setDiscoverabilityTitle:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="attributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="Attributes", PropertyType=typeof(UIKit.UIMenuElementAttributes), Selector="attributes", SetterSelector="setAttributes:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="state", IsProperty=true, IsRequired=true, IsStatic=false, Name="State", PropertyType=typeof(UIKit.UIMenuElementState), Selector="state", SetterSelector="setState:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="sender", IsProperty=true, IsRequired=true, IsStatic=false, Name="Sender", PropertyType=typeof(Foundation.NSObject), Selector="sender")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="repeatBehavior", IsProperty=true, IsRequired=true, IsStatic=false, Name="RepeatBehavior", PropertyType=typeof(UIKit.UIMenuElementRepeatBehavior), Selector="repeatBehavior", SetterSelector="setRepeatBehavior:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="selectedImage", IsProperty=true, IsRequired=false, IsStatic=false, Name="SelectedImage", PropertyType=typeof(UIKit.UIImage), Selector="selectedImage", SetterSelector="setSelectedImage:")]
public interface IUIMenuLeaf : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIMenuLeaf", WrapperType=typeof(UIKit.UIMenuLeafWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Target", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSObject) }, Selector="performWithSender:target:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="title", IsProperty=true, IsRequired=true, IsStatic=false, Name="Title", PropertyType=typeof(System.String), Selector="title", SetterSelector="setTitle:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="image", IsProperty=true, IsRequired=true, IsStatic=false, Name="Image", PropertyType=typeof(UIKit.UIImage), Selector="image", SetterSelector="setImage:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="discoverabilityTitle", IsProperty=true, IsRequired=true, IsStatic=false, Name="DiscoverabilityTitle", PropertyType=typeof(System.String), Selector="discoverabilityTitle", SetterSelector="setDiscoverabilityTitle:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="attributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="Attributes", PropertyType=typeof(UIKit.UIMenuElementAttributes), Selector="attributes", SetterSelector="setAttributes:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="state", IsProperty=true, IsRequired=true, IsStatic=false, Name="State", PropertyType=typeof(UIKit.UIMenuElementState), Selector="state", SetterSelector="setState:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="sender", IsProperty=true, IsRequired=true, IsStatic=false, Name="Sender", PropertyType=typeof(Foundation.NSObject), Selector="sender")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="presentationSourceItem", IsProperty=true, IsRequired=true, IsStatic=false, Name="PresentationSourceItem", PropertyType=typeof(UIKit.IUIPopoverPresentationControllerSourceItem), Selector="presentationSourceItem")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="repeatBehavior", IsProperty=true, IsRequired=true, IsStatic=false, Name="RepeatBehavior", PropertyType=typeof(UIKit.UIMenuElementRepeatBehavior), Selector="repeatBehavior", SetterSelector="setRepeatBehavior:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="selectedImage", IsProperty=true, IsRequired=false, IsStatic=false, Name="SelectedImage", PropertyType=typeof(UIKit.UIImage), Selector="selectedImage", SetterSelector="setSelectedImage:")>]
type IUIMenuLeaf = interface
interface INativeObject
interface IDisposable
[<Foundation.Protocol(Name="UIMenuLeaf", WrapperType=typeof(UIKit.UIMenuLeafWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Target", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSObject), typeof(Foundation.NSObject) }, Selector="performWithSender:target:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="title", IsProperty=true, IsRequired=true, IsStatic=false, Name="Title", PropertyType=typeof(System.String), Selector="title", SetterSelector="setTitle:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="image", IsProperty=true, IsRequired=true, IsStatic=false, Name="Image", PropertyType=typeof(UIKit.UIImage), Selector="image", SetterSelector="setImage:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="discoverabilityTitle", IsProperty=true, IsRequired=true, IsStatic=false, Name="DiscoverabilityTitle", PropertyType=typeof(System.String), Selector="discoverabilityTitle", SetterSelector="setDiscoverabilityTitle:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="attributes", IsProperty=true, IsRequired=true, IsStatic=false, Name="Attributes", PropertyType=typeof(UIKit.UIMenuElementAttributes), Selector="attributes", SetterSelector="setAttributes:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="state", IsProperty=true, IsRequired=true, IsStatic=false, Name="State", PropertyType=typeof(UIKit.UIMenuElementState), Selector="state", SetterSelector="setState:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="sender", IsProperty=true, IsRequired=true, IsStatic=false, Name="Sender", PropertyType=typeof(Foundation.NSObject), Selector="sender")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="repeatBehavior", IsProperty=true, IsRequired=true, IsStatic=false, Name="RepeatBehavior", PropertyType=typeof(UIKit.UIMenuElementRepeatBehavior), Selector="repeatBehavior", SetterSelector="setRepeatBehavior:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="selectedImage", IsProperty=true, IsRequired=false, IsStatic=false, Name="SelectedImage", PropertyType=typeof(UIKit.UIImage), Selector="selectedImage", SetterSelector="setSelectedImage:")>]
type IUIMenuLeaf = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Remarks
A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.
A class may also implement members from this interface to implement members from the protocol.
Properties
| Name | Description |
|---|---|
| Attributes | |
| DiscoverabilityTitle | |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
| Image | |
| PresentationSourceItem | |
| RepeatBehavior | |
| SelectedImage | |
| Sender | |
| State | |
| Title | |
Methods
| Name | Description |
|---|---|
| Target(NSObject, NSObject) | |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |
| GetSelectedImage(IUIMenuLeaf) | |
| SetSelectedImage(IUIMenuLeaf, UIImage) | |