www.gnostice.com 

PageWidth

Top  Previous  Next

The PageWidth property specifies the width of the page.

 

 

 

 

Syntax

 

 

[VC++]

double GetPageWidth();

void SetPageWidth(double newValue);

 

[C#]

public abstract new double PageWidth [  get,  set ]

 

[VB]

Property PageWidth As Double

 

Remarks

 

 

This property will generally hold the width of the page corresponding to PagePaperSize property. The value returned by this property will be in the units specified in MeasurementUnit property.

 

 

 

The height and width of a page can be set to any custom value. The pre-condition is that the PagePaperSize property is set to "Custom". The custom values will be applied to all the pages created after setting these values.

 

 

 

 

Note

 

 

This property should be set before calling NewPage or BeginDoc to come into effect.

 

 

 

 

Example Code

 

 

For an example code, see Page Formatting.

 

 

 

 

See Also

 

 

PageHeight, PagePaperSize