AutoAsparagus.PopupMenuDrawable.AddOption C# (CSharp) Method

AddOption() public method

Adds a new option to the popup menu.
public AddOption ( string text ) : IButton
text string The text of the option.
return IButton
        public IButton AddOption(string text)
        {
            object realButton = addOptionMethod.Invoke(realPopupMenuDrawable, new object[] { text });
            return new Button(realButton, new ToolbarTypes());
        }