FixedPage.GetRight(UIElement) Método

Definición

Devuelve la distancia entre el lado derecho de un elemento y el lado derecho de su Canvas primario.

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 debe obtener el desplazamiento derecho.

Devoluciones

Distancia entre el lado derecho de un elemento y el lado derecho de su lienzo primario.

Atributos

Comentarios

Si no se ha establecido el desplazamiento derecho, GetRight devuelve NaN.

Se aplica a

Consulte también