語言

Canvas.SetTop(UIElement, Double) 方法

定義

設定給定相依物件所附屬性的值 Top 。

public:
 static void SetTop(System::Windows::UIElement ^ element, double length);
public static void SetTop(System.Windows.UIElement element, double length);
static member SetTop : System.Windows.UIElement * double -> unit
Public Shared Sub SetTop (element As UIElement, length As Double)

參數

element
UIElement

財產價值所寫入的元素。

length
Double

設定 Top 指定元素的座標。

適用於

另請參閱