InkCanvas.GetBottom(UIElement) 方法

定义

为给定的依赖对象获取 Bottom 附加属性的值。

public:
 static double GetBottom(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 GetBottom (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 GetBottom (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 GetBottom : 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 GetBottom : System.Windows.UIElement -> double
Public Shared Function GetBottom (element As UIElement) As Double

参数

element
UIElement

要获取其下边缘属性的元素。

返回

依赖项对象的下边缘坐标。

属性

示例

以下示例演示如何获取 的位置 Button

double buttonBottom = InkCanvas.GetBottom(button1);
Dim buttonBottom As Double = InkCanvas.GetBottom(button1)

适用于