Thickness.Left Propiedad

Definición

Obtiene o establece el ancho, en píxeles, del lado izquierdo del rectángulo delimitador.Gets or sets the width, in pixels, of the left side of the bounding rectangle.

public:
 property double Left { double get(); void set(double value); };
public double Left { get; set; }
member this.Left : double with get, set
Public Property Left As Double

Valor de propiedad

Double

Estructura Double que representa el ancho, en píxeles, del lado izquierdo del rectángulo delimitador para esta instancia de Thickness.A Double that represents the width, in pixels, of the left side of the bounding rectangle for this instance of Thickness. Un píxel es igual a 1/96 de pulgada.a pixel is equal to 1/96 on an inch. El valor predeterminado es 0.The default is 0.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer el valor de la propiedad mediante el Left uso de Lenguaje XAML (Extensible Application Markup Language)Extensible Application Markup Language (XAML) y el código.The following example shows how to set the value of the Left property by using Lenguaje XAML (Extensible Application Markup Language)Extensible Application Markup Language (XAML) and code.

myBorder2 = new Border();
myBorder2.BorderBrush = Brushes.SteelBlue;
myBorder2.Width = 400;
myBorder2.Height = 400;
myThickness = new Thickness();
myThickness.Bottom = 5;
myThickness.Left = 10;
myThickness.Right = 15;
myThickness.Top = 20;
myBorder2.BorderThickness = myThickness;
Dim myBorder2 As New Border()
myBorder2.BorderBrush = Brushes.SteelBlue
myBorder2.Width = 400
myBorder2.Height = 400
Dim myThickness As New Thickness()
myThickness.Bottom = 5
myThickness.Left = 10
myThickness.Right = 15
myThickness.Top = 20
myBorder2.BorderThickness = myThickness
<Border BorderBrush="SteelBlue" Width="400" Height="400" Canvas.Left="100" Canvas.Top="100">
  <Border.BorderThickness>
    10,20,15,5
  </Border.BorderThickness>
</Border>

Se aplica a