TableStyle.CellPadding Propriedade

Definição

Obtém ou define a quantidade de espaço entre o conteúdo e a borda da célula.Gets or sets the amount of space between the contents of the cell and the cell's border.

public:
 virtual property int CellPadding { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public virtual int CellPadding { get; set; }
public virtual int CellPadding { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.CellPadding : int with get, set
member this.CellPadding : int with get, set
Public Overridable Property CellPadding As Integer

Valor da propriedade

Int32

A distância (em pixels) entre o conteúdo de uma célula e a borda da célula.The distance (in pixels) between the contents of a cell and the cell's border. O padrão é -1, que indica que essa propriedade não está definida.The default is -1, which indicates that this property is not set.

Atributos

Exceções

A distância especificada é definida como um valor menor que -1.The specified distance is set to a value less than -1.

Comentários

Use a CellPadding propriedade para controlar o espaçamento entre o conteúdo de uma célula e a borda da célula.Use the CellPadding property to control the spacing between the contents of a cell and the cell's border. A quantidade de preenchimento especificada é adicionada a todos os quatro lados de uma célula.The padding amount specified is added to all four sides of a cell.

Todas as células na mesma coluna de um controle de listagem de dados compartilham a mesma largura de célula.All cells in the same column of a data listing control share the same cell width. Portanto, se o conteúdo de uma célula for maior do que o conteúdo de outras células na mesma coluna, o valor de preenchimento será aplicado à célula mais larga.Therefore, if the content of one cell is longer than the content of other cells in the same column, the padding amount is applied to the widest cell. Todas as outras células na coluna também são definidas com essa largura de célula.All other cells in the column are also set with this cell width.

Da mesma forma, todas as células na mesma linha compartilham a mesma altura.Similarly, all cells in the same row share the same height. O valor de preenchimento é aplicado à altura da célula mais alta na linha.The padding amount is applied to the height of the tallest cell in the row. Todas as outras células na mesma linha são definidas com essa altura de célula.All other cells in the same row are set with this cell height. Não é possível especificar tamanhos de células individuais.Individual cell sizes cannot be specified.

O valor dessa propriedade é armazenado em estado de exibição.The value of this property is stored in view state.

Aplica-se a

Confira também