语言

ToolTipService.GetHasDropShadow(DependencyObject) 方法

定义

获取对象的附加属性的值 HasDropShadow 。

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

参数

element
DependencyObject

从中读取属性值的对象。

返回

HasDropShadow对象的属性值。

特性

示例

以下示例演示如何获取附加属性的值 ToolTipService.HasDropShadow 。 该方法 FindName 查找调用 ellipse2的对象,该对象是一个 Ellipse。

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

适用于

另请参阅