Class FormatDefaultColumnWidthCommand
Setting the default width of the column in SfSpreadsheet
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 FormatDefaultColumnWidthCommand : FormatCommand, ICommand
Constructors
FormatDefaultColumnWidthCommand(SfSpreadsheet, String)
Initializes a new instance of the FormatDefaultColumnWidthCommand class
Declaration
public FormatDefaultColumnWidthCommand(SfSpreadsheet spreadsheetControl, string commandName)
Parameters
| Type | Name | Description |
|---|---|---|
| SfSpreadsheet | spreadsheetControl | An instance of SfSpreadsheet |
| System.String | commandName | Name of the command |
Methods
OnCanExecute(Object)
Determines the FormatDefaultColumnWidthCommand can be executed or not
Declaration
public override bool OnCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | parameter | True or False |
Returns
| Type | Description |
|---|---|
| System.Boolean | True or False |
Overrides
Remarks
This command will not be executed when the current sheet is protected or the cell is in edit mode
OnExecute(Object)
Executes the FormatDefaultColumnWidthCommand to set the default width for the selected columns in SfSpreadsheet
Declaration
protected override void OnExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | parameter | null |
Overrides
Implements
System.Windows.Input.ICommand