## CustomCommandButton class

Représente un bouton de commande personnalisé dans la barre d'onglets du contrôle GridWeb.

```csharp
public class CustomCommandButton : Control, ISerializable
```

## Constructeurs

| Nom | La description |
| --- | --- |
| [CustomCommandButton](customcommandbutton)() | Constructeur par défaut. |

## Propriétés

| Nom | La description |
| --- | --- |
| [ClientClickEvent](../../aspose.cells.gridweb/customcommandbutton/clientclickevent) { get; set; } | Obtient ou définit le gestionnaire d'événements de clic côté client. |
| [Command](../../aspose.cells.gridweb/customcommandbutton/command) { get; set; } | Obtient ou définit le nom de la commande. |
| [CommandType](../../aspose.cells.gridweb/customcommandbutton/commandtype) { get; set; } | Obtient ou définit le type de rendu de la commande. Le type peut être un bouton de commande ou un élément de menu contextuel. |
| [DiscardInput](../../aspose.cells.gridweb/customcommandbutton/discardinput) { get; set; } | Indique s'il faut supprimer l'entrée de l'utilisateur sur le navigateur client lorsque l'utilisateur clique sur ce bouton. Peut être utilisé comme une action "annuler". |
| [ImageUrl](../../aspose.cells.gridweb/customcommandbutton/imageurl) { get; set; } | Obtient ou définit l'URL de l'image du bouton de commande. S'il est défini sur une chaîne nulle ou vide, le bouton n'affichera que son texte. |
| [Text](../../aspose.cells.gridweb/customcommandbutton/text) { get; set; } | Obtient ou définit le texte alternatif du bouton de commande. |
| [ToolTip](../../aspose.cells.gridweb/customcommandbutton/tooltip) { get; set; } | Obtient ou définit l'info-bulle du bouton de commande. |
| [Width](../../aspose.cells.gridweb/customcommandbutton/width) { get; set; } | Largeur du bouton. |

## Méthodes

| Nom | La description |
| --- | --- |
| [GetObjectData](../../aspose.cells.gridweb/customcommandbutton/getobjectdata)(SerializationInfo, StreamingContext) | Usage interne uniquement. |

### Exemples

```csharp
[C#]
CustomCommandButton button = new CustomCommandButton();
button.Command = "MyCommand";
button.ImageUrl = "images/button1.gif";
GridWeb1.CustomCommandButtons.Add(button);
[VB]
Dim button As CustomCommandButton =  New CustomCommandButton()
button.Command = "MyCommand"
button.ImageUrl = "images/button1.gif"
GridWeb1.CustomCommandButtons.Add(button)
```

### Voir également

* espace de noms [Aspose.Cells.GridWeb](../../aspose.cells.gridweb)
* Assemblée [Aspose.Cells.GridWeb](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.GridWeb.dll -->
