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

適用対象

こちらもご覧ください