Intersoft ClientUI Documentation
PageWidth Property



Gets or sets the preferred width for pages in a document.
Syntax
Public Property PageWidth As Double
Dim instance As FlowDocument
Dim value As Double
 
instance.PageWidth = value
 
value = instance.PageWidth
public double PageWidth {get; set;}
public:
property double PageWidth {
   double get();
   void set (    double value);
}
Remarks

When FlowDocument is in page mode, you can set the default page size using PageHeight and PageWidth properties. The default page size in FlowDocument is letter size (816 px x 1056 px). You can set PagePadding property to set the padding space between the boundaries of a page and the page's content. You can set PageMargin property to set the margin space between pages. You can also set PageBorderThickness to set the border thickness for each page.

XAML
Copy Code
<Intersoft:FlowDocument LineSpacingType="OneAndHalfLines" TextAlignment="Justify" PageHeight="300" 
                        PageWidth="600" PagePadding="30" PageMargin="10">
    <Intersoft:Paragraph SpacingAfter="20">
        <Intersoft:Run>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        </Intersoft:Run>
    </Intersoft:Paragraph>
    <Intersoft:Paragraph>
        <Intersoft:Run>
            Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
        </Intersoft:Run>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FlowDocument Class
FlowDocument Members

Send Feedback