menu

UWP

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

    Show / Hide Table of Contents

    Class FormatDefaultColumnWidthCommand

    Setting the default width of the column in SfSpreadsheet

    Inheritance
    System.Object
    CommandBase
    FormatCommand
    FormatDefaultColumnWidthCommand
    Implements
    System.Windows.Input.ICommand
    Inherited Members
    CommandBase.CanExecute(Object)
    CommandBase.CanExecuteChanged
    CommandBase.CommandName
    CommandBase.Execute(Object)
    CommandBase.RaiseCanExecuteChanged()
    CommandBase.SfSpreadsheet
    Namespace: Syncfusion.UI.Xaml.Spreadsheet.Commands
    Assembly: Syncfusion.SfSpreadsheet.UWP.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
    FormatCommand.OnCanExecute(Object)
    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
    FormatCommand.OnExecute(Object)

    Implements

    System.Windows.Input.ICommand

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved