다음을 통해 공유


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)의 Block 특성을 설정하는 FlowDirection 방법을 보여 줍니다.

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

다음 예제에서는 설정 하는 방법의 Typography 속성 프로그래밍 방식으로 합니다.

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 지정된 방향으로 다시 흐릅니다.

콘텐츠의 흐름 방향은 일반적으로 표현되는 언어의 타고난 흐름 방향에 해당합니다. 히브리어와 아랍어는 자연스럽게 오른쪽에서 왼쪽으로 흐르는 언어의 예입니다. 영어, 독일어 및 러시아어는 자연스럽게 왼쪽에서 오른쪽으로 흐르는 언어의 예입니다.

메모

이 속성의 값은 운영 체제에서 사용하는 언어와 일치하도록 자동으로 변경되지 않습니다. 다른 값을 사용해야 하는 경우기본값LeftToRight은 n입니다. 직접 지정해야 합니다.

종속성 속성 정보

Item 가치
식별자 필드 FlowDirectionProperty
메타데이터 속성이 다음으로 설정됩니다. true Inherits, AffectsParentArrange

적용 대상