Block.GetTextAlignment(DependencyObject) メソッド

定義

指定された依存関係オブジェクトの TextAlignment 添付プロパティの値を返します。Returns the value of the TextAlignment attached property for a specified dependency object.

public:
 static System::Windows::TextAlignment GetTextAlignment(System::Windows::DependencyObject ^ element);
public static System.Windows.TextAlignment GetTextAlignment (System.Windows.DependencyObject element);
static member GetTextAlignment : System.Windows.DependencyObject -> System.Windows.TextAlignment
Public Shared Function GetTextAlignment (element As DependencyObject) As TextAlignment

パラメーター

element
DependencyObject

TextAlignment プロパティの値を取得する対象の依存関係オブジェクト。The dependency object from which to retrieve the value of the TextAlignment property.

戻り値

指定した依存関係オブジェクトの TextAlignment 添付プロパティの現在の値。The current value of the TextAlignment attached property on the specified dependency object.

例外

elementnull です。element is null.

適用対象

こちらもご覧ください