Figure


FigureDependencyObject ContentElement FrameworkContentElement TextElement Block

 <Figure     CanDelayPlacement="true|false"     Height="200"     HorizontalAnchor="ContentCenter|ContentLeft|ContentRight|                       PageCenter|PageLeft|PageRight|ParagraphCenter|                       ParagraphLeft|ParagraphRight"     HorizontalOffset="10"   VerticalAnchor="ContentBottom|ContentTop|ContentCenter|PageBottom|PageTop|                     PageCenter|ParagraphTop"     VerticalOffset="10"     Width="200"     WrapDirection="Both|Left|None|Right" /> 

<Figure .../> is used to display inline content within a FlowDocument with special placement properties. Figure 7-2 shows a Figure that displays both an image and text and is placed in the paragraph according to its declared anchor attributes.

Figure 7-2. Using Figure to display an image and text within a FlowDocument


Attributes


CanDelayPlacement (optional)

Specifies whether the Figure can wait to place itself into the layout until after other elements have been rendered in the FlowDocument.


true

Placement can be delayed.


false

Placement cannot be delayed.


Height (optional)

A Double value specifying the height of the element.


HorizontalAnchor (optional)

Specifies the position that content is anchored horizontally.


ContentCenter

The figure is anchored to the center of the page content area.


ContentLeft

The figure is anchored to the left of the page content area.


ContentRight

The figure is anchored to the right of the page content area.


PageCenter

The figure is anchored to the center of the page area.


PageLeft

The figure is anchored to the left of the page area.


PageRight

The figure is anchored to the right of the page area.


ParagraphCenter

The figure is anchored to the center of the current paragraph.


ParagraphLeft

The figure is anchored to the left of the current paragraph.


ParagraphRight

The figure is anchored to the right of the current paragraph.


HorizontalOffset (optional)

A Double value representing the distance this Figure is offset from its horizontal baseline.


VerticalAnchor (optional)

Specifies the position that content is anchored vertically.


ContentBottom

The figure is anchored to the bottom of the page content area.


ContentCenter

The figure is anchored to the center of the page content area.


ContentTop

The figure is anchored to the top of the page content area.


PageBottom

The figure is anchored to the bottom of the page area.


PageCenter

The figure is anchored to the center of the page area.


PageTop

The figure is anchored to the top of the page area.


ParagraphTop

The figure is anchored to the top of the current paragraph.


VerticalOffset (optional)

A Double value representing the distance this Figure is offset from its vertical baseline.


Width (optional)

A Double value specifying the width of the element.


WrapDirection (optional)

Specifies the allowable directions in which content can wrap about the Figure.


Both

Content may flow around both sides of the element.


None

Content may not flow around this element.


Left

Content only flows around the left side of the element.


Right

Content only flows around the right side of the element.




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