ToolTipService.GetHorizontalOffset(DependencyObject) メソッド

定義

オブジェクトに対する HorizontalOffset 添付プロパティの値を取得します。

public:
 static double GetHorizontalOffset(System::Windows::DependencyObject ^ element);
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static double GetHorizontalOffset (System.Windows.DependencyObject element);
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetHorizontalOffset : System.Windows.DependencyObject -> double
Public Shared Function GetHorizontalOffset (element As DependencyObject) As Double

パラメーター

element
DependencyObject

プロパティ値の読み取り元となるオブジェクト。

戻り値

オブジェクトの HorizontalOffset プロパティ値。

属性

次の例は、添付プロパティの値を取得する方法を ToolTipService.HorizontalOffset 示しています。 メソッドは FindName 、 という名前 ellipse2の オブジェクトを検索します。これは です Ellipse

double myDouble = ToolTipService.GetHorizontalOffset(
 (DependencyObject)FindName("ellipse2"));
Dim myDouble As Double = ToolTipService.GetHorizontalOffset(CType(FindName("ellipse2"), DependencyObject))

適用対象

こちらもご覧ください