Поделиться через


PageSetup Class

Page Setup.When the object is serialized out as xml, its qualified name is c:pageSetup.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Drawing.Charts.PageSetup

Namespace:  DocumentFormat.OpenXml.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
Public Class PageSetup _
    Inherits OpenXmlLeafElement
'Применение
Dim instance As PageSetup
public class PageSetup : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 редакция 1]

21.2.2.134 pageSetup (Page Setup)

This element defines the page setup for the chart.

[Example: The following example shows the pageSetup element for ISO A0 paper, printed in black and white, with graphics:

<pageSetup blackAndWhite="true" draft="false" paperHeight="1189" paperWidth="841" paperUnits="mm" />

end example]

Parent Elements

printSettings (§21.2.2.148)

Attributes

Description

blackAndWhite (Black and White)

Specifies the page shall print in black and white.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

copies (Copies)

Specifies the number of copies that shall be printed.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

draft (Draft)

Specifies the page shall be printed in draft mode.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

firstPageNumber (First Page Number)

Specifies the page number.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

horizontalDpi (Horizontal DPI)

Specifies the horizontal resolution to print in dots per inch.

The possible values for this attribute are defined by the W3C XML Schema int datatype.

orientation (Orientation)

Specifies the orientation of the paper.

The possible values for this attribute are defined by the ST_PageSetupOrientation simple type (§21.2.3.32).

paperHeight (Paper Height)

Height of custom paper as a number followed by a unit identifier. [Example: 297mm, 11inend example]

When paperHeight and paperWidth are specified, paperSize shall be ignored.

The possible values for this attribute are defined by the ST_PositiveUniversalMeasure simple type (§22.9.2.12).

paperSize (Page Size)

Specifies the paper size according to the following table.

Paper Size

Width

Height

Value

Letter paper

8.5 in.

11 in.

1

Legal paper

8.5 in.

14 in.

5

Standard paper

10 in.

11 in.

45

Standard paper

10 in.

14 in.

16

Standard paper

11 in.

17 in.

17

Standard paper

15 in.

11 in.

46

Standard paper

9 in.

11 in.

44

SuperA/SuperA/A4 paper

227 mm

356 mm

57

A2 paper

420 mm

594 mm

66

A3 paper

297 mm

420 mm

8

A3 extra paper

322 mm

445 mm

63

A3 extra transverse paper

322 mm

445 mm

68

A3 transverse paper

297 mm

420 mm

67

A4 paper

210 mm

297 mm

9

A4 extra paper

236 mm

322 mm

53

A4 plus paper

210 mm

330 mm

60

A4 transverse paper

210 mm

297 mm

55

A4 small paper

210 mm

297 mm

10

A5 paper

148 mm

210 mm

11

A5 extra paper

174 mm

235 mm

64

A5 transverse paper

148 mm

210 mm

61

SuperB/SuperB/A3 paper

305 mm

487 mm

58

B4 paper

250 mm

353 mm

12

B5 paper

176 mm

250 mm

13

ISO B5 extra paper

201 mm

276 mm

65

JIS B5 transverse paper

182 mm

257 mm

62

C paper

17 in.

22 in.

24

D paper

22 in.

34 in.

25

#10 envelope

4.125 in.

9.5 in.

20

#11 envelope

4.5 in.

10.375 in.

21

#12 envelope

4.75 in.

11 in.

22

#14 envelope

5 in.

11.5 in.

23

#9 envelope

3.875 in.

8.875 in.

19

B4 envelope

250 mm

353 mm

33

B5 envelope

176 mm

250 mm

34

B6 envelope

176 mm

125 mm

35

C3 envelope

324 mm

458 mm

29

C4 envelope

229 mm

324 mm

30

C5 envelope

162 mm

229 mm

28

C6 envelope

114 mm

162 mm

31

C65 envelope

114 mm

229 mm

32

DL envelope

110 mm

220 mm

27

Invite envelope

220 mm

220 mm

47

Italy envelope

110 mm

230 mm

36

Monarch envelope

3.875 in.

7.5 in.).

37

6 3/4 envelope

3.625 in.

6.5 in.

38

E paper

34 in.

44 in.

26

Executive paper

7.25 in.

10.5 in.

7

German legal fanfold

8.5 in.

13 in.

41

German standard fanfold

8.5 in.

12 in.

40

US standard fanfold

14.875 in.

11 in.

39

Folio paper

8.5 in.

13 in.

14

ISO B4

250 mm

353 mm

42

Japanese double postcard

200 mm

148 mm

43

Ledger paper

17 in.

11 in.

4

Legal extra paper

9.275 in.

15 in.

51

Letter extra paper

9.275 in.

12 in.

50

Letter extra transverse paper

9.275 in.

12 in.

56

Letter plus paper

8.5 in.

12.69 in.

59

Letter transverse paper

8.275 in.

11 in.

54

Letter small paper

8.5 in.

11 in.

2

Note paper

8.5 in.

11 in.

18

Quarto paper

215 mm

275 mm

15

Statement paper

5.5 in.

8.5 in.

6

Tabloid paper

11 in.

17 in.

3

Tabloid extra paper

11.69 in.

18 in.

52

When paperHeight, paperWidth, and paperUnits are specified, paperSize should be ignored.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

paperWidth (Paper Width)

Width of custom paper as a number followed by a unit identifier. [Example: 21cm, 8.5inend example]

When paperHeight and paperWidth are specified, paperSize shall be ignored.

The possible values for this attribute are defined by the ST_PositiveUniversalMeasure simple type (§22.9.2.12).

useFirstPageNumber (Use First Page Number)

Specifies to use the first page number instead of automatically generating a page number.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

verticalDpi (Vertical DPI)

Specifies the vertical resolution to print in dots per inch.

The possible values for this attribute are defined by the W3C XML Schema int datatype.

[Note: The W3C XML Schema definition of this element's content model (CT_PageSetup) is located in §A.5.1. end note]

© ISO/IEC29500: 2008. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PageSetup Members

DocumentFormat.OpenXml.Drawing.Charts Namespace