다음을 통해 공유


InkCanvas.GetLeft(UIElement) 메서드

정의

지정된 종속성 개체에 대한 Left 연결된 속성의 값을 설정합니다.

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

매개 변수

element
UIElement

Left 속성을 가져올 요소입니다.

반환

Double

종속성 개체의 왼쪽 좌표입니다.

특성

예제

다음 예제에서는 의 위치를 Button가져오는 방법을 보여 줍니다.

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

적용 대상