FrameworkElement.GetFlowDirection(DependencyObject) 方法

定義

取得所指定 DependencyObjectFlowDirection 附加屬性值。

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

參數

element
DependencyObject

要為其傳回 FlowDirection 的項目。

傳回

要求的流程方向,作為列舉值。

備註

這個方法的主要用途是支援 屬性的附加屬性語法 FlowDirection ,因此允許提供的 FrameworkElement 子項目指定其父元素內的排列方向。 若要取得目前 FrameworkElement 的值,請使用直接 Common Language Runtime (CLR) 存取子 FlowDirection

適用於

另請參閱