75 lines
2.7 KiB
C#
75 lines
2.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.ComponentModel.Design
|
|
{
|
|
/// <summary>Represents a verb that can be invoked from a designer.</summary>
|
|
// Token: 0x02000044 RID: 68
|
|
[ComVisible(true)]
|
|
public class DesignerVerb : MenuCommand
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesignerVerb" /> class.</summary>
|
|
/// <param name="text">The text of the menu command that is shown to the user. </param>
|
|
/// <param name="handler">The event handler that performs the actions of the verb. </param>
|
|
// Token: 0x060002BF RID: 703 RVA: 0x00009860 File Offset: 0x00007A60
|
|
public DesignerVerb(string text, EventHandler handler)
|
|
: this(text, handler, StandardCommands.VerbFirst)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesignerVerb" /> class.</summary>
|
|
/// <param name="text">The text of the menu command that is shown to the user. </param>
|
|
/// <param name="handler">The event handler that performs the actions of the verb. </param>
|
|
/// <param name="startCommandID">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. </param>
|
|
// Token: 0x060002C0 RID: 704 RVA: 0x00009870 File Offset: 0x00007A70
|
|
public DesignerVerb(string text, EventHandler handler, CommandID startCommandID)
|
|
: base(handler, startCommandID)
|
|
{
|
|
this.text = text;
|
|
}
|
|
|
|
/// <summary>Gets the text description for the verb command on the menu.</summary>
|
|
/// <returns>A description for the verb command.</returns>
|
|
// Token: 0x170000CD RID: 205
|
|
// (get) Token: 0x060002C1 RID: 705 RVA: 0x00009884 File Offset: 0x00007A84
|
|
public string Text
|
|
{
|
|
get
|
|
{
|
|
return this.text;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the description of the menu item for the verb.</summary>
|
|
/// <returns>A string describing the menu item. </returns>
|
|
// 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;
|
|
}
|
|
}
|
|
|
|
/// <summary>Overrides <see cref="M:System.Object.ToString" />.</summary>
|
|
/// <returns>The verb's text, or an empty string ("") if the text field is empty.</returns>
|
|
// 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;
|
|
}
|
|
}
|