語言

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))

適用於

另請參閱