Th

L’élément Th représente une cellule d’en-tête de colonne dans un tableau (Table). Il s’utilise à l’intérieur d’une ligne Tr pour nommer chaque colonne et améliorer la lisibilité du TableHeader.


Liste des attributs

  • Colspan : Permet de fusionner les cellules horizontalement (de la même ligne)

  • Rowspan : Permet de fusionner les cellules verticalement (de la même colonne)

  • StyleName (Liste ouverte) : Permet de choisir, dans la liste déroulante, un style pour l’élément

  • VerticalAlignment (Liste) : Permet de choisir l’alignement vertical du contenu à l’intérieur de la cellule


Exemple de code JXML

<Th><Paragraph>Texte</Paragraph></Th>
<Table OutputMode="all" Spacing="normal" OutputTarget="all">
  <ColumnDefinitions>
    <ColumnDefinition Width="50%" />
    <ColumnDefinition Width="50%" />
  </ColumnDefinitions>

  <TableHeader StyleName="">
    <Tr>
      <Th Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all">Nom</Paragraph>
      </Th>
      <Th Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all">Prénom</Paragraph>
      </Th>
    </Tr>
  </TableHeader>

  <TableBody>
    <Tr>
      <Td Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all"></Paragraph>
      </Td>
      <Td Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all"></Paragraph>
      </Td>
    </Tr>
    <Tr>
      <Td Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all"></Paragraph>
      </Td>
      <Td Colspan="1" VerticalAlignment="top" Rowspan="1">
        <Paragraph OutputMode="all" Spacing="normal" OutputTarget="all"></Paragraph>
      </Td>
    </Tr>
  </TableBody>
</Table>


Mode flow


Structure parente

Dernière modification le 18-10-2025

Lorsque vous naviguez sur le campus Jway, des informations sont susceptibles d'être enregistrées (cookies) sur votre terminal pour personnaliser vos contenus et votre navigation.

Nous n'utilisons que des cookies indispensables au bon fonctionnement de ce site et dont le seul objectif est d'améliorer notre service aux usagers.

En savoir plus