Propriété HorizontalAlignde TableCell ASP.NET


TableCell 控件Contrôle TableCell

Définition et utilisation

La propriété HorizontalAlign est utilisée pour définir ou renvoyer l'alignement horizontal du contenu dans le contrôle TableCell.

Syntaxe

<asp:TableCell HorizontalAlign="align" runat="server">
Un contenu
</asp:TableCell>
 
Propriété Description
align Spécifie l'alignement horizontal du contenu.

Valeurs possibles :

  • Center
  • Justify
  • Left
  • NotSet (Par défaut)
  • Right


Exemple

L'exemple suivant définit la propriété HorizontalAlign du contrôle TableCell :

<form runat="server">
<asp:Table id="tab1" runat="server">
<asp:TableRow>
<asp:TableCell HorizontalAlign="Center">
Bonjour !
</asp:TableCell>
<asp:TableCell>
Bonjour !
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

Exemple de démonstration »

TableCell 控件Contrôle TableCell Autres extensions