using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// Represents a verb that can be invoked from a designer.
// Token: 0x02000044 RID: 68
[ComVisible(true)]
public class DesignerVerb : MenuCommand
{
/// Initializes a new instance of the class.
/// The text of the menu command that is shown to the user.
/// The event handler that performs the actions of the verb.
// Token: 0x060002BF RID: 703 RVA: 0x00009860 File Offset: 0x00007A60
public DesignerVerb(string text, EventHandler handler)
: this(text, handler, StandardCommands.VerbFirst)
{
}
/// Initializes a new instance of the class.
/// The text of the menu command that is shown to the user.
/// The event handler that performs the actions of the verb.
/// The starting command ID for this verb. By default, the designer architecture sets aside a range of command IDs for verbs. You can override this by providing a custom command ID.
// Token: 0x060002C0 RID: 704 RVA: 0x00009870 File Offset: 0x00007A70
public DesignerVerb(string text, EventHandler handler, CommandID startCommandID)
: base(handler, startCommandID)
{
this.text = text;
}
/// Gets the text description for the verb command on the menu.
/// A description for the verb command.
// Token: 0x170000CD RID: 205
// (get) Token: 0x060002C1 RID: 705 RVA: 0x00009884 File Offset: 0x00007A84
public string Text
{
get
{
return this.text;
}
}
/// Gets or sets the description of the menu item for the verb.
/// A string describing the menu item.
// Token: 0x170000CE RID: 206
// (get) Token: 0x060002C2 RID: 706 RVA: 0x0000988C File Offset: 0x00007A8C
// (set) Token: 0x060002C3 RID: 707 RVA: 0x00009894 File Offset: 0x00007A94
public string Description
{
get
{
return this.description;
}
set
{
this.description = value;
}
}
/// Overrides .
/// The verb's text, or an empty string ("") if the text field is empty.
// Token: 0x060002C4 RID: 708 RVA: 0x000098A0 File Offset: 0x00007AA0
public override string ToString()
{
return this.text + " : " + base.ToString();
}
// Token: 0x040000C9 RID: 201
private string text;
// Token: 0x040000CA RID: 202
private string description;
}
}