InkCanvas.GetLeft(UIElement) Yöntem

Tanım

Belirli bir bağımlılık nesnesi için ekli özelliğin değerini Left alır.

public:
 static double GetLeft(System::Windows::UIElement ^ element);
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
[System.Windows.AttachedPropertyBrowsableForChildren]
public static double GetLeft (System.Windows.UIElement element);
[System.Windows.AttachedPropertyBrowsableForChildren]
[System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public static double GetLeft (System.Windows.UIElement element);
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
[<System.Windows.AttachedPropertyBrowsableForChildren>]
static member GetLeft : System.Windows.UIElement -> double
[<System.Windows.AttachedPropertyBrowsableForChildren>]
[<System.ComponentModel.TypeConverter("System.Windows.LengthConverter, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")>]
static member GetLeft : System.Windows.UIElement -> double
Public Shared Function GetLeft (element As UIElement) As Double

Parametreler

element
UIElement

sol özelliğinin alındığı öğesi.

Döndürülenler

Double

Bağımlılık nesnesinin sol koordinatı.

Öznitelikler

Örnekler

Aşağıdaki örnek, bir Buttonkonumunun nasıl alınduğunu gösterir.

double buttonLeft = InkCanvas.GetLeft(button1);
Dim buttonLeft As Double = InkCanvas.GetLeft(button1)

Şunlara uygulanır