InkCanvas.GetRight(UIElement) Método

Definición

Obtiene el valor de la propiedad adjunta Right de un objeto de dependencia determinado.

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

Parámetros

element
UIElement

Elemento del que se obtiene el valor de la propiedad Right.

Devoluciones

Coordenada derecha del objeto de dependencia.

Atributos

Ejemplos

En el ejemplo siguiente se muestra cómo obtener la posición de .Button

double buttonRight = InkCanvas.GetRight(button1);
Dim buttonRight As Double = InkCanvas.GetRight(button1)

Se aplica a