Class FormatDefaultColumnWidthCommand
Setting the default width of the column in SfSpreadsheet
Implements
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.Windows.Forms.Spreadsheet.Commands
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class FormatDefaultColumnWidthCommand : FormatCommand, ICommand
Constructors
FormatDefaultColumnWidthCommand(Spreadsheet, String)
Initializes a new instance of the FormatDefaultColumnWidthCommand class
Declaration
public FormatDefaultColumnWidthCommand(Spreadsheet spreadsheetControl, string commandName)
Parameters
Type | Name | Description |
---|---|---|
Spreadsheet | spreadsheetControl | An instance of |
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 |