Export (0) Print
Expand All
Expand Minimize

FlowDirection Enumeration

Defines constants that specify the content flow direction for text and user interface (UI) elements.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)] 
public enum FlowDirection
/** @attribute LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable) */ 
public enum FlowDirection
LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable) 
public enum FlowDirection
<object property="EnumerationValue" .../>

 Member nameDescription
LeftToRightIndicates that content should flow from left to right. 
RightToLeftIndicates that content should flow from right to left. 

The flow direction 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.

The following example shows how to use the FlowDirection enumeration to set the FlowDirection attribute of a flow content Block element (Paragraph).

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

The following example shows how to use the FlowDirection enumeration programmatically.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft