FlowDocument


FlowDocumentHierarchy: DependencyObject FrameworkContentElement Document

     <FlowDocument         ColumnGap="5"         ColumnWidth="300"         ColumnRuleWidth="15"         ColumnRuleBrush="LightGray"         IsColumnWidthFlexible="true|false"         FlowDirection="LeftToRightThenTopToBottom|RightToLeftThenTopToBottom "         LineHeight="12"         MaxPageHeight="1000"         MaxPageWidth="1000"         MinPageHeight="400"         MinPageWidth="400"         PageHeight="700"         PageWidth="700"         PagePadding="5,10,5,10"         TextAlignment="Center|End|Justify|Left|Right|Start"         TextTrimming="CharacterEllipsis|WordEllipsis|None"         TextWrap="Wrap|NoWrap|Emergency" /> 

<FlowDocument .../> provides a mechanism for displaying and formatting text with advanced features such as pagination and columns.

Attributes


ColumnGap (optional)

This Double value describes the distance between columns. If ColumnWidth is null, this value has no effect. The value of this attribute cannot exceed the page Width minus the PagePadding.


ColumnRuleBrush (optional)

This attribute describes the Brush used to paint the column rule. If ColumnRuleWidth is 0, this attribute has no effect. Exposed predefined colors from the Color class, listed in Appendix G, may be used to describe this attribute.


ColumnRuleWidth (optional)

This Double value describes the width of the rule between columns. The default is 0.


ColumnWidth (optional)

This Double value describes the width of the columns.


FlowDirection (optional)

Determines the direction that text flows within the document:

  • LeftToRightThenTopToBottom

  • RightToLeftThenTopToBottom


IsColumnWidthFlexible (optional)

This Boolean determines whether ColumnWidth is flexible.


true

Column widths will frequently be larger than specified.


false

Column widths will always be exactly the width specified.


LineHeight (optional)

This Double describes the height of each generated line of text. It does not affect the font size.


MaxPageHeight (optional)

This Double describes the maximum height of a page of content.


MaxPageWidth (optional)

This Double describes the maximum width of a page of content.


MinPageHeight (optional)

This Double describes the minimum height of a page of content.


MinPageWidth (optional)

This Double describes the minimum width of a page of content.


PageHeight (optional)

This Double describes the height of a page of content.


PagePadding (optional)

This Thickness describes the amount of padding to apply. It can be described as a uniform value (PagePadding="10") or as individual values (PagePadding="0,5,10,5").


PageWidth (optional)

This Double describes the width of a page of content.


TextAlignment (optional)

This attribute describes the horizontal alignment of text.


Center

The text is center-aligned.


End

The text is aligned on the end of the inline progression, as determined by the current text-advance direction.


Justify

Text is justified. This will increase spacing between words if necessary to keep text justified across the width of the FlowDocument.


Left

In horizontal inline progression, the text is aligned on the left.


Right

In horizontal inline progression, the text is aligned on the right.


Start

The text is aligned on the start of the inline progression, as determined by the current text-advance direction.


TextTrimming (optional)

Determines how to treat text that flows past the end of the element.


CharacterEllipsis

Text is trimmed at a character boundary. Remaining text is replaced with an ellipsis (. . .).


None

Text is not trimmed.


WordEllipsis

Text is trimmed at a word boundary. Remaining text is replaced with an ellipsis (. . .).


TextWrap (optional)

Determines the behavior of text when it reaches the boundary of its containing box.


Emergency

Text is wrapped even if the line-breaking algorithm cannot determine an optimal wrapping opportunity. This is the default behavior.


NoWrap

Text is not wrapped.


Wrap

Text is wrapped.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net