Paragraph


ParagraphHierarchy: DependencyObject FrameworkContentElement TextElement Block

 <Paragraph     MinOrphanLines="1"     MinWidowLines="1"     TextIndent="1.0"     Texttrimming="WordEllipsis|CharacterEllipsis|None"     TextDecorations="Collection"     KeepTogether="true|false"     KeepWithNext="true|false"     /> 

<Paragraph .../> implements a block-level element that is analogous to an HTML paragraph, except that Paragraph can contain only inline elements. Unlike HTML, you cannot nest Paragraph elements within other Paragraph elements. This element cannot be a root-level element.

Attributes


KeepTogether (optional)

This attribute determines how text should be handled in the case of page breaks.


true

Text in this paragraph should be kept together, even if it means moving the entire paragraph to the next logical section.


false

Text can be separated.


KeepWithNext (optional)

This attribute determines how text should be handled in the case of page breaks.


true

Indicates that this block should be kept with the next block in the track. (This also implies that the paragraph itself will not be broken.)


false

Text can be separated.


MinOrphanLines (optional)

Designates the minimum number of lines that can be left behind when a paragraph is broken on a page or column break.


MinWidowLines (optional)

Specifies the minimum number of lines after a break that can be put on the next page or column.


TextDecorations (optional)

Specifies a collection of Textdecoration elements that are applied to the Paragraph.


TextIndent (optional)

Specifies the indentation of the first line of a paragraph.


TextTrimming (optional)

Determines how text that flows past the end of the element is treated. Must be one of:


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 ( . . . ).




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