語言

InkCanvas.SetLeft(UIElement, Double) 方法

定義

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

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

參數

element
UIElement

用來設定 left 屬性的元素。

length
Double

的 element左座標。

範例

以下範例示範如何設定 的位置 Button。

InkCanvas.SetLeft(button1, 100);
InkCanvas.SetLeft(button1, 100)

適用於