ToolTipService.GetHasDropShadow(DependencyObject) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件附加屬性 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))