TrackBar.Orientation Propiedad

Definición

Obtiene o establece un valor que indica la orientación vertical u horizontal de la barra de seguimiento.Gets or sets a value indicating the horizontal or vertical orientation of the track bar.

public:
 property System::Windows::Forms::Orientation Orientation { System::Windows::Forms::Orientation get(); void set(System::Windows::Forms::Orientation value); };
public System.Windows.Forms.Orientation Orientation { get; set; }
member this.Orientation : System.Windows.Forms.Orientation with get, set
Public Property Orientation As Orientation

Valor de propiedad

Uno de los valores de Orientation.One of the Orientation values.

Excepciones

El valor asignado no es uno de los valores de Orientation.The assigned value is not one of the Orientation values.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer algunas de las propiedades TrackBar.The following example demonstrates how to set some of the TrackBar properties.

trackBar2->Orientation = Orientation::Vertical;
trackBar3->Orientation = Orientation::Vertical;
trackBar1->Maximum = 255;
trackBar2->Maximum = 255;
trackBar3->Maximum = 255;
trackBar1->Width = 400;
trackBar2->Height = trackBar1->Width;
trackBar3->Height = trackBar1->Width;
trackBar1->LargeChange = 16;
trackBar2->LargeChange = 16;
trackBar3->LargeChange = 16;

trackBar2.Orientation = Orientation.Vertical;
trackBar3.Orientation = Orientation.Vertical;
trackBar1.Maximum = trackBar2.Maximum = trackBar3.Maximum = 255;
trackBar1.Width = 400;
trackBar2.Height = trackBar3.Height = trackBar1.Width;
trackBar1.LargeChange = trackBar2.LargeChange = trackBar3.LargeChange = 16;
trackBar2.Orientation = Orientation.Vertical
trackBar3.Orientation = Orientation.Vertical
trackBar1.Maximum = 255
trackBar2.Maximum = 255
trackBar3.Maximum = 255
trackBar1.Width = 400
trackBar2.Height = 400
trackBar3.Height = 400
trackBar1.LargeChange = 16
trackBar2.LargeChange = 16
trackBar3.LargeChange = 16

Comentarios

Cuando la propiedad Orientation está establecida en Orientation.Horizontal, el cuadro de desplazamiento se mueve de izquierda a derecha a medida que aumenta el @no__t 2.When the Orientation property is set to Orientation.Horizontal, the scroll box moves from left to right as the Value increases. Cuando la propiedad Orientation está establecida en Orientation.Vertical, el cuadro de desplazamiento se mueve de abajo arriba a medida que el @no__t 2 aumenta.When the Orientation property is set to Orientation.Vertical, the scroll box moves from bottom to top as the Value increases.

Se aplica a

Consulte también: