FlowDocument.FlowDirection 속성

정의

FlowDocument에 있는 콘텐츠의 흐름에 대한 상대적인 방향을 가져오거나 설정합니다.

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

상대적인 흐름 방향을 지정하는 FlowDirection 값 중 하나입니다. 기본값은 LeftToRight입니다.

예제

다음 예제에서는 설정 하는 방법을 보여 줍니다 합니다 FlowDirection 특성을 FlowDocument 요소입니다.

<FlowDocumentReader>
  <FlowDocument 
    FlowDirection="LeftToRight"
  >
    <Paragraph>
      The FlowDirection of content typically corresponds to the innate flow direction
      of the language being represented.  Hebrew and Arabic provide examples of
      languages that naturally flow from right-to-left.  English, German, and Russian
      provide examples of languages that naturally flow from left-to-right.
    </Paragraph>
  </FlowDocument>
</FlowDocumentReader>

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

FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
// Set the content flow direction to left-to-right.
flowDoc.FlowDirection = System.Windows.FlowDirection.LeftToRight;
Dim flowDoc As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
' Set the content flow direction to left-to-right.
flowDoc.FlowDirection = System.Windows.FlowDirection.LeftToRight

설명

이 속성을 가져오면 현재 유효한 흐름 방향이 반환됩니다. 이 속성을 설정하면 FlowDocument 표시된 방향으로 내용이 다시 흐름됩니다.

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

참고

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

종속성 속성 정보

식별자 필드 FlowDirectionProperty
메타 데이터 속성 설정 true AffectsParentArrange, Inherits

적용 대상