FrameworkElement.GetFlowDirection(DependencyObject) 方法

定義

取得所指定 DependencyObjectFlowDirection 附加屬性值。Gets the value of the FlowDirection attached property for the specified DependencyObject.

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 的項目。The element to return a FlowDirection for.

傳回

要求的流程方向,作為列舉值。The requested flow direction, as a value of the enumeration.

備註

這個方法的主要目的是支援 FlowDirection 屬性的附加屬性語法,因此可讓提供的 FrameworkElement 的子專案指定在其父項目中排列的流程方向。The main purpose of this method is to support attached property syntax for the FlowDirection property, therefore allowing child elements of a provided FrameworkElement to specify flow direction for the arrangement within their parent element. 若要取得目前 FrameworkElement的值,請使用 direct 通用語言執行平台 (CLR)common language runtime (CLR) 存取子 FlowDirectionTo get the value on the current FrameworkElement, use the direct 通用語言執行平台 (CLR)common language runtime (CLR) accessor FlowDirection.

適用於

另請參閱