共用方式為


Block.GetTextAlignment(DependencyObject) 方法

定義

傳回所指定相依性物件的 TextAlignment 附加屬性值。

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 屬性值的相依性物件。

傳回

TextAlignment

所指定相依性物件上 TextAlignment 附加屬性的目前值。

例外狀況

elementnull

適用於

另請參閱