menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CommandBase - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CommandBase

    Base Command used for defining commands

    Inheritance
    System.Object
    CommandBase
    AlignmentCommand
    ClearCommand
    ClipboardCommand
    ConditionalFormattingCommand
    DataValidationCommand
    DeleteCommand
    DeleteCommentCommand
    FileCloseCommand
    FileEncryptCommand
    FileNewCommand
    FileOpenCommand
    FileSaveAsCommand
    FileSaveCommand
    FillCommand
    FilterCommand
    FindAndReplaceCommand
    FontCommand
    FontSizeCommand
    FormatAsTableCommand
    FormatCellsCommand
    FormatCellStyleCommand
    FormatCommand
    FormulaBarVisibilityCommand
    GridLinesVisibilityCommand
    HeadingsVisibilityCommand
    HyperlinkCommand
    InsertCommand
    InsertCommentCommandBase
    NameManagerCommand
    NewNameRangeCommand
    NumberCommand
    OutlineCommand
    ProtectWorkbookCommand
    RenameSheetCommand
    WindowCommand
    Implements
    System.Windows.Input.ICommand
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Spreadsheet.Commands
    Assembly: Syncfusion.SfSpreadsheet.WPF.dll
    Syntax
    public class CommandBase : ICommand

    Properties

    CommandName

    Declaration
    protected string CommandName { get; }
    Property Value
    Type
    System.String

    SfSpreadsheet

    The SfSpreadsheet Control

    Declaration
    public SfSpreadsheet SfSpreadsheet { get; }
    Property Value
    Type
    SfSpreadsheet

    Methods

    CanExecute(Object)

    Declaration
    public bool CanExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter
    Returns
    Type
    System.Boolean

    Execute(Object)

    used to Execute the CommandBase

    Declaration
    public virtual void Execute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    true or false

    OnCanExecute(Object)

    returns

    Declaration
    public virtual bool OnCanExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    true or false

    Returns
    Type Description
    System.Boolean

    returns true or false

    OnExecute(Object)

    Used to Execute the Specified Command

    Declaration
    protected virtual void OnExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    returns true or false

    RaiseCanExecuteChanged()

    Declaration
    public void RaiseCanExecuteChanged()

    Events

    CanExecuteChanged

    Event is used to handle when OnCanExecute is changed

    Declaration
    public event EventHandler CanExecuteChanged
    Event Type
    Type
    System.EventHandler

    Implements

    System.Windows.Input.ICommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved