Thickness.Left Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the width, in pixels, of the left side of the bounding rectangle.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

member Left : float with get, set

Property Value

Type: System.Double

A Double that represents the width, in pixels, of the left side of the bounding rectangle for this instance of Thickness. a pixel is equal to 1/96 on an inch. The default is 0.

The following example shows how to set the value of the Left property by using Extensible Application Markup Language (XAML) and code.

No code example is currently available or this language may not be supported.
<Border BorderBrush="SteelBlue" Width="400" Height="400" Canvas.Left="100" Canvas.Top="100">
  <Border.BorderThickness>
    10,20,15,5
  </Border.BorderThickness>
</Border>

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: