TextBlock.GetTextAlignment(DependencyObject) Metoda

Definicja

Zwraca wartość dołączonej TextAlignment właściwości dla określonego obiektu zależności.

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

Parametry

element
DependencyObject

Obiekt zależności, z którego ma pobrać wartość dołączonej TextAlignment właściwości.

Zwraca

Bieżąca wartość dołączonej TextAlignment właściwości dla określonego obiektu zależności.

Wyjątki

element to null.

Dotyczy

Zobacz też