menu

WinForms

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

    Show / Hide Table of Contents

    Class WrapTextCommand

    Command used to set TextWrapping

    Inheritance
    System.Object
    CommandBase
    AlignmentCommand
    WrapTextCommand
    Implements
    ICommand
    Inherited Members
    CommandBase.CanExecute(Object)
    CommandBase.CommandName
    CommandBase.Execute(Object)
    CommandBase.SfSpreadsheet
    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 WrapTextCommand : AlignmentCommand, ICommand

    Constructors

    WrapTextCommand(Spreadsheet, String)

    Constructor for WrapText

    Declaration
    public WrapTextCommand(Spreadsheet spreadsheetControl, string commandName)
    Parameters
    Type Name Description
    Spreadsheet spreadsheetControl

    The SfSpreadsheet Control

    System.String commandName

    Methods

    OnCanExecute(Object)

    returns true if WrapText can be executed else false

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

    true or false

    Returns
    Type Description
    System.Boolean

    returns true or false

    Overrides
    AlignmentCommand.OnCanExecute(Object)

    OnExecute(Object)

    Used to execute the WrapText

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

    null

    Overrides
    AlignmentCommand.OnExecute(Object)

    Implements

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