Propriété HorizontalAlign ASP.NET
Définition et utilisation
L'attribut HorizontalAlign est utilisé pour définir ou retourner l'alignement horizontal du contenu dans le contrôle Table.
Syntaxe
<asp:Table HorizontalAlign="align" runat="server"> Some Content </asp:Table>
Propriété | Description |
---|---|
align |
Définir l'alignement horizontal du contenu. Valeurs possibles :
|
Exemple
L'exemple suivant définit l'attribut HorizontalAlign du contrôle Table:
<form runat="server"> <asp:Table id="tab1" runat="server" HorizontalAlign="Center"> <asp:TableRow> <asp:TableCell>Hello!</asp:TableCell> <asp:TableCell>Hello!</asp:TableCell> </asp:TableRow> </asp:Table> </form>
Exemple
- Définir l'alignement horizontal pour le contrôle Table