TableRow.VerticalAlign Propiedad

Definición

Obtiene o establece la alineación vertical del contenido de la fila.

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 propiedad

VerticalAlign

Uno de los valores de VerticalAlign. El valor predeterminado es NotSet.

Atributos

Ejemplos

En el ejemplo siguiente se muestra cómo usar la VerticalAlign propiedad . Para obtener un ejemplo de código completo y funcional, consulte el tema de información general de la TableRow clase.

// 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)

Comentarios

Utilice la VerticalAlign propiedad para especificar la alineación vertical del contenido de la fila. En la tabla siguiente se enumeran los valores posibles.

Alineación vertical Descripción
NotSet No se establece la alineación vertical.
Top El contenido de la fila se alinea con la parte superior de la fila.
Middle El contenido de la fila se alinea con el centro de la fila.
Bottom El contenido de la fila se alinea con la parte inferior de la fila.

Se aplica a

Consulte también