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

속성 값을 읽어올 개체입니다.

반환

Double

개체의 HorizontalOffset 속성 값입니다.

특성

예제

다음 예제에서는 연결된 속성의 값을 ToolTipService.HorizontalOffset 가져오는 방법을 보여 있습니다. 메서드는 FindName 호출 ellipse2된 개체를 찾습니다. 이 개체는 .입니다 Ellipse.

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

적용 대상

추가 정보