ToolTipService.GetIsOpen(DependencyObject) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オブジェクトの IsOpen 添付プロパティの値を取得します。
public:
static bool GetIsOpen(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetIsOpen(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetIsOpen : System.Windows.DependencyObject -> bool
Public Shared Function GetIsOpen (element As DependencyObject) As Boolean
パラメーター
- element
- DependencyObject
プロパティ値の読み取り元のオブジェクト。
返品
オブジェクトの IsOpen プロパティ値。
- 属性
例
次の例は、 ToolTipService.IsOpen 添付プロパティの値を取得する方法を示しています。
FindName メソッドは、ellipse2である Ellipse というオブジェクトを検索します。
myBool = ToolTipService.GetIsOpen(
(DependencyObject)FindName("ellipse2"));
myBool = ToolTipService.GetIsOpen(CType(FindName("ellipse2"), DependencyObject))