Block.FlowDirection プロパティ

定義

Block 要素内のコンテンツのフローの相対的な方向を指定する値を取得または設定します。

public:
 property System::Windows::FlowDirection FlowDirection { System::Windows::FlowDirection get(); void set(System::Windows::FlowDirection value); };
public System.Windows.FlowDirection FlowDirection { get; set; }
member this.FlowDirection : System.Windows.FlowDirection with get, set
Public Property FlowDirection As FlowDirection

プロパティ値

相対的なフロー方向を指定する FlowDirection 値のいずれか。 既定値は、LeftToRight です。

次の例は、要素 (Paragraph) の属性をFlowDirection設定する方法をBlock示しています。

<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

注釈

このプロパティを取得すると、現在有効なフロー方向が返されます。 このプロパティを設定すると、Block 要素のコンテンツが指定した方向に再フローされます。

通常、コンテンツのフロー方向は、表される言語の生来のフロー方向に対応します。 ヘブライ語とアラビア語は、右から左に自然に流れる言語の例です。 英語、ドイツ語、ロシア語は、左から右に自然に流れる言語の例です。

Note

このプロパティの値は、オペレーティング システムで使用される言語と一致するように自動的に変更されません。 別の値を使用する必要がある場合は、n の既定値はLeftToRight、自分で指定する必要があります。

依存プロパティ情報

識別子フィールド FlowDirectionProperty
に設定されたメタデータ プロパティ true Inherits, AffectsParentArrange

適用対象