InkCanvas.GetRight(UIElement) Método

Definição

Obtém o valor da propriedade anexada Right para um determinado objeto de dependência.

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

O elemento do qual obter a propriedade direita.

Retornos

A coordenada direita do objeto de dependência.

Atributos

Exemplos

O exemplo a seguir demonstra como obter a posição de um Button.

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

Aplica-se a