InkCanvas.SetLeft(UIElement, Double) Metoda

Definicja

Ustawia wartość dołączonej Left właściwości dla danego obiektu zależności.

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)

Parametry

element
UIElement

Element, na którym należy ustawić właściwość po lewej stronie.

length
Double

Współrzędna po lewej stronie .element

Przykłady

W poniższym przykładzie pokazano, jak ustawić położenie elementu Button.

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

Dotyczy