Class CommandBase
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Commands
Assembly: Telerik.WinControls.dll
Syntax
public class CommandBase : ICommand, ICommandPresentation, IImageListProvider
Constructors
CommandBase()
Initializes a new instance of the CommandBase class.
Declaration
public CommandBase()
CommandBase(String)
Initializes a new instance of the CommandBase class using command name.
Declaration
public CommandBase(string name)
Parameters
System.String
name
|
CommandBase(String, String)
Initializes a new instance of the CommandBase class.
Declaration
public CommandBase(string name, string text)
Parameters
System.String
name
|
System.String
text
|
CommandBase(String, String, String)
Declaration
public CommandBase(string name, string text, string type)
Parameters
System.String
name
|
System.String
text
|
System.String
type
|
Properties
ContextType
Declaration
public Type ContextType { get; set; }
Property Value
System.Type
|
Implements
ImageList
Declaration
public ImageList ImageList { get; set; }
Property Value
System.Windows.Forms.ImageList
|
Implements
Name
Gets or sets the command name/
Declaration
public string Name { get; set; }
Property Value
System.String
|
Implements
OwnerType
Declaration
public Type OwnerType { get; set; }
Property Value
System.Type
|
Implements
Text
Declaration
public string Text { get; set; }
Property Value
System.String
|
Implements
Type
Gets or sets the command type.
Declaration
public string Type { get; set; }
Property Value
System.String
|
Implements
Methods
CanExecute(Object)
Declaration
public virtual bool CanExecute(object parameter)
Parameters
System.Object
parameter
|
Returns
System.Boolean
|
Implements
Execute()
Executes the command.
Declaration
public virtual object Execute()
Returns
System.Object
|
Implements
Execute(Object[])
Executes the command with the given settings.
Declaration
public virtual object Execute(params object[] settings)
Parameters
System.Object[]
settings
|
Returns
System.Object
|
Implements
GetImageAt(Int32)
Declaration
public Image GetImageAt(int index)
Parameters
System.Int32
index
|
Returns
System.Drawing.Image
|
GetImageAt(String)
Declaration
public Image GetImageAt(string index)
Parameters
System.String
index
|
Returns
System.Drawing.Image
|
OnCanExecuteChanged()
Declaration
protected virtual void OnCanExecuteChanged()
RaiseExecuted(Object[])
Declaration
protected virtual void RaiseExecuted(params object[] settings)
Parameters
System.Object[]
settings
|
RaiseHandleExecute(Object[])
Declaration
protected virtual bool RaiseHandleExecute(params object[] settings)
Parameters
System.Object[]
settings
|
Returns
System.Boolean
|
ToString()
Retrieves a text representation of the instance.
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Implements
Events
CanExecuteChanged
Declaration
public event EventHandler CanExecuteChanged
Event Type
System.EventHandler
|
Implements
Executed
HandleExecute
Declaration
public event CommandEventHandler HandleExecute
Event Type
CommandEventHandler
|