Compartilhar via


ToolTipService.GetHasDropShadow(DependencyObject) Método

Definição

Obtém o valor da propriedade anexada HasDropShadow de um objeto.

public:
 static bool GetHasDropShadow(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetHasDropShadow (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetHasDropShadow : System.Windows.DependencyObject -> bool
Public Shared Function GetHasDropShadow (element As DependencyObject) As Boolean

Parâmetros

element
DependencyObject

O objeto do qual o valor da propriedade é lido.

Retornos

Boolean

O valor da propriedade HasDropShadow do objeto.

Atributos

Exemplos

O exemplo a seguir mostra como obter o valor da ToolTipService.HasDropShadow propriedade anexada. O FindName método localiza o objeto chamado ellipse2, que é um Ellipse.

bool myBool = ToolTipService.GetHasDropShadow(
             (DependencyObject)FindName("ellipse2"));
Dim myBool As Boolean = ToolTipService.GetHasDropShadow(CType(FindName("ellipse2"), DependencyObject))

Aplica-se a

Confira também