FlowDirection 列舉

定義

定義常數,指定文字和使用者介面 (UI) 項目的內容流向。

public enum class FlowDirection
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)]
public enum FlowDirection
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None, Readability=System.Windows.Readability.Unreadable)>]
type FlowDirection = 
Public Enum FlowDirection
繼承
FlowDirection
屬性

欄位

LeftToRight 0

表示內容應由左至右流動。

RightToLeft 1

表示內容應由右至左流動。

範例

下列範例示範如何使用 FlowDirection 列舉來設定 FlowDirection 流程內容 Block 專案的 屬性, (Paragraph) 。

<FlowDocument>
  <Paragraph FlowDirection="LeftToRight">
    This paragraph will flow from left to right.
  </Paragraph>
</FlowDocument>

下列範例示範如何以程式設計方式使用 FlowDirection 列舉。

Paragraph par = new Paragraph(new Run("This paragraph will flow from left to right."));
par.FlowDirection = FlowDirection.LeftToRight;
Dim par As New Paragraph(New Run("This paragraph will flow from left to right."))
par.FlowDirection = FlowDirection.LeftToRight

備註

內容的流程方向通常對應至所表示語言的固有流程方向。 希伯來文和阿拉伯文提供自然從右至左流動的語言範例。 英文、德文和俄文提供自然從左至右流動的語言範例。

適用於