TableRow.VerticalAlign Propriedade

Definição

Obtém ou define o alinhamento vertical dos conteúdos na linha.

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

Valor de Propriedade

Um dos VerticalAlign valores. O valor predefinido é NotSet.

Atributos

Exemplos

O exemplo seguinte demonstra como usar a VerticalAlign propriedade. Para um exemplo completo e funcional de código, veja o TableRow tópico de visão geral da aula.

// Create a TableItemStyle object that can be
// set as the default style for all cells
// in the table.
TableItemStyle tableStyle = new TableItemStyle();
tableStyle.HorizontalAlign = HorizontalAlign.Center;
tableStyle.VerticalAlign = VerticalAlign.Middle;
tableStyle.Width = Unit.Pixel(100);
' Create a TableItemStyle object that can be
' set as the default style for all cells
' in the table.
Dim tableStyle As New TableItemStyle()
tableStyle.HorizontalAlign = HorizontalAlign.Center
tableStyle.VerticalAlign = VerticalAlign.Middle
tableStyle.Width = Unit.Pixel(100)

Observações

Use a VerticalAlign propriedade para especificar o alinhamento vertical do conteúdo da linha. A tabela seguinte lista os valores possíveis.

Alinhamento Vertical Description
NotSet O alinhamento vertical não está definido.
Top O conteúdo da fila está alinhado com o topo da carreira.
Middle O conteúdo da fila está alinhado com o meio da fila.
Bottom O conteúdo da fila está alinhado com a parte inferior da fila.

Aplica-se a

Ver também