FixedPage.GetLeft(UIElement) Метод

Определение

Returns the distance between the left side of an element and the left side of its parent Canvas.Returns the distance between the left side of an element and the left side of its parent Canvas.

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

Параметры

element
UIElement

The element from which to get the left offset.The element from which to get the left offset.

Возвращаемое значение

The distance between the right side of an element and the right side of its parent canvas.The distance between the right side of an element and the right side of its parent canvas.

Атрибуты

Комментарии

Если Левое смещение не задано, GetRight возвращает NaN.If the left offset has not been set, GetRight returns NaN.

Применяется к

Дополнительно