Class AutoFitCommand
To Set AutoFit for RowHeight/ColumnWidth
Implements
System.Windows.Input.ICommand
  Inherited Members
Namespace: Syncfusion.UI.Xaml.Spreadsheet.Commands
Assembly: Syncfusion.SfSpreadsheet.UWP.dll
Syntax
public class AutoFitCommand : FormatCommand, ICommand
  Constructors
AutoFitCommand(SfSpreadsheet, String)
Constructor for AutoFitCommand
Declaration
public AutoFitCommand(SfSpreadsheet spreadsheetControl, string commandName)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SfSpreadsheet | spreadsheetControl | The SfSpreadsheet Control  | 
      
| System.String | commandName | 
Methods
OnCanExecute(Object)
returns true when the AutoFit Command can be Executed else false
Declaration
public override bool OnCanExecute(object parameter)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | parameter | pass parameter as RowHeight when RowHeight is to be executed else pass parameter as ColumnWidth  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | returns true or false  | 
      
Overrides
OnExecute(Object)
used to Execute the Command AutoFit RowHeight/ AutoFit ColumnWidth
Declaration
protected override void OnExecute(object parameter)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | parameter | 
Overrides
Implements
      System.Windows.Input.ICommand