Class RVMenuItem

This class represents an object that is used to show an icon, title text, and click action of a menu item.

Inheritance
System.Object
RVMenuItem
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Reveal.Sdk
Assembly: Reveal.UI.Sdk.dll
Syntax
public class RVMenuItem : RVMenuItemBase

Constructors

RVMenuItem()

Generic constructor for a menu item. Properties such as Title, and Icon will need set to adjust appearance. To set a click action, use the Action property.

Declaration
public RVMenuItem()

RVMenuItem(String)

Generic constructor for a menu item that sets the Title property and leaves the Icon blank. To set a click action, use the Action property.

Declaration
public RVMenuItem(string title)
Parameters
Type Name Description
System.String title

The text to show on the menu item

RVMenuItem(String, RVImage, Action)

Constructor for the menu item that sets all available properties

Declaration
public RVMenuItem(string title, RVImage icon, Action action)
Parameters
Type Name Description
System.String title

The text to show on the menu item.

RVImage icon

The icon to show to the left of the menu title text.

System.Action action

The block of code to execute after a menu item is clicked.

Properties

Action

The block of code to execute after the menu item is clicked.

Declaration
public Action Action { get; set; }
Property Value
Type Description
System.Action