Thickness.Top Thickness.Top Thickness.Top Thickness.Top Property

정의

경계 사각형 위쪽 변의 너비를 픽셀 단위로 가져오거나 설정합니다.Gets or sets the width, in pixels, of the upper side of the bounding rectangle.

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

속성 값

Double의 이 인스턴스에서 경계 사각형 위쪽 변의 너비를 픽셀 단위로 나타내는 Thickness입니다.A Double that represents the width, in pixels, of the upper side of the bounding rectangle for this instance of Thickness. 1픽셀은 1인치의 1/96입니다.A pixel is equal to 1/96 of an inch. 기본값은 0입니다.The default is 0.

예제

다음 예제에서는 값을 설정 하는 방법을 보여 줍니다 합니다 Top 를 사용 하 여 속성 XAML(Extensible Application Markup Language)Extensible Application Markup Language (XAML) 및 코드입니다.The following example shows how to set the value of the Top property by using 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>

적용 대상