Block.SetTextAlignment(DependencyObject, TextAlignment) メソッド

定義

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

public:
 static void SetTextAlignment(System::Windows::DependencyObject ^ element, System::Windows::TextAlignment value);
public static void SetTextAlignment (System.Windows.DependencyObject element, System.Windows.TextAlignment value);
static member SetTextAlignment : System.Windows.DependencyObject * System.Windows.TextAlignment -> unit
Public Shared Sub SetTextAlignment (element As DependencyObject, value As TextAlignment)

パラメーター

element
DependencyObject

TextAlignment プロパティの値の設定対象となる依存関係オブジェクト。The dependency object on which to set the value of the TextAlignment property.

value
TextAlignment

プロパティに設定する新しい値。The new value to set the property to.

例外

elementnull です。element is null.

GetTextAlignment

適用対象