Table.CellSpacing Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define a quantidade de espaçamento entre células em uma tabela.
public:
property double CellSpacing { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
public double CellSpacing { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
member this.CellSpacing : double with get, set
Public Property CellSpacing As Double
Valor da propriedade
A quantidade de espaçamento entre células em uma tabela, em pixels independentes do dispositivo.
O valor padrão é 2.0.
- Atributos
Exemplos
O exemplo a seguir define uma tabela simples 2 x 3 com um CellSpacing de 0,35 centímetros.
<Table Background="Yellow" CellSpacing="0.35cm">
<Table.Columns>
<TableColumn /> <TableColumn /> <TableColumn />
</Table.Columns>
<TableRowGroup>
<TableRow>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 1 Column 1</Paragraph>
</TableCell>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 1 Column 2</Paragraph>
<Paragraph>Cell at Row 1 Column 2</Paragraph>
</TableCell>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 1 Column 3</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 2 Column 1</Paragraph>
</TableCell>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 2 Column 2</Paragraph>
</TableCell>
<TableCell Background="Cyan">
<Paragraph>Cell at Row 2 Column 3</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
A figura a seguir mostra como este exemplo é renderizado.
Em contraste, a figura a seguir mostra como a mesma tabela é renderizada com um espaçamento de célula padrão de 2 pixels.
Comentários
Uso do atributo XAML
<object property="double"/>
- or -
<object property="qualifiedDouble"/>
Valores XAML
DuploDouble
Representação de cadeia de caracteres de um Double valor igual ou maior que 0,0 , mas menor que PositiveInfinity. Um valor não qualificado é medido em pixels independentes do dispositivo. As cadeias de caracteres não precisam incluir explicitamente pontos decimais.
Qualifieddouble Um valor duplo conforme descrito acima, seguido por um dos seguintes especificadores de unidade: px, , in, cm. pt
px (padrão) são unidades independentes do dispositivo (1/96 polegada por unidade)
in é polegadas; 1in==96px
cm é centímetros; 1cm==(96/2,54) px
pt é pontos; 1pt==(96/72) px
Informações da propriedade Dependency
| Item | Valor |
|---|---|
| Campo identificador | CellSpacingProperty |
Propriedades de metadados definidas como true |
AffectsMeasure |