PageSetup
Vue de l’ensemble
‘PageSetup’ est une classe dans Aspose.Cells FOSS pour .NET.
Il représente les paramètres d’impression et de layout des feuilles de travail. var workbook = new Workbook(); var pageSetup = workbooks.Worksheets[0].PageSetUp; page Setup.Orientation = PageOrientationType.Landscape; PageSetop.RightMargin = 1.5;pageSetap.PrintTitleRows = “$1:$1”; pageSettings.AddHorizontalPagesBreak(40);
Cette classe fournit 4 méthodes pour travailler avec des objets PageSetup dans les programmes .NET. Les méthodologies disponibles comprennent: ‘AddHorizontalPageBreak’, ‘AddiVerticalPagesBreaks’, `ClearHorisontal Page Breaks’ et ‘C ClearVerticPagebreaks’. Tous les membres exportés sont accessibles à n’importe quelle application .Net après l’installation de l’Aspouse.Cells FOSS pour le package .net. Propriétés : ‘BottomMargin’, ‘B bottomMarginInch’, ‘Focus Center’, ’CenterHeader’, ‚CentreHisontal’, ‘Centrial Vertically’, et 27 autres.
Description
‘PageSetup’ est une classe dans la bibliothèque Aspose.Cells FOSS pour .NET qui expose 4 méthodes et 33 propriétés pour l’utilisation programmée.
La classe fournit également la propriété de ‘HorizontalPageBreaks’ (qui prend les bris horizontales), la propiété d’ ‘VerticalPagesBreak’ [qui fait le brise verticale de page].
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
PaperSize | PaperSizeType | Read/Write | Gets or sets the paper size. |
Orientation | PageOrientationType | Read/Write | Gets or sets the orientation. |
FirstPageNumber | int? | Read/Write | Gets or sets the first page number. |
Scale | int? | Read/Write | Gets or sets the scale. |
FitToPagesWide | int? | Read/Write | Gets or sets the fit to pages wide. |
FitToPagesTall | int? | Read/Write | Gets or sets the fit to pages tall. |
PrintArea | string | Read/Write | Gets or sets the print area. |
PrintTitleRows | string | Read/Write | Gets or sets the print title rows. |
PrintTitleColumns | string | Read/Write | Gets or sets the print title columns. |
LeftMargin | double | Read/Write | Gets or sets the left margin. |
RightMargin | double | Read/Write | Gets or sets the right margin. |
TopMargin | double | Read/Write | Gets or sets the top margin. |
BottomMargin | double | Read/Write | Gets or sets the bottom margin. |
HeaderMargin | double | Read/Write | Gets or sets the header margin. |
FooterMargin | double | Read/Write | Gets or sets the footer margin. |
LeftMarginInch | double | Read/Write | Gets or sets the left margin inch. |
RightMarginInch | double | Read/Write | Gets or sets the right margin inch. |
TopMarginInch | double | Read/Write | Gets or sets the top margin inch. |
BottomMarginInch | double | Read/Write | Gets or sets the bottom margin inch. |
HeaderMarginInch | double | Read/Write | Gets or sets the header margin inch. |
FooterMarginInch | double | Read/Write | Gets or sets the footer margin inch. |
LeftHeader | string | Read/Write | Gets or sets the left header. |
CenterHeader | string | Read/Write | Gets or sets the center header. |
RightHeader | string | Read/Write | Gets or sets the right header. |
LeftFooter | string | Read/Write | Gets or sets the left footer. |
CenterFooter | string | Read/Write | Gets or sets the center footer. |
RightFooter | string | Read/Write | Gets or sets the right footer. |
PrintGridlines | bool | Read/Write | Gets or sets the print gridlines. |
PrintHeadings | bool | Read/Write | Gets or sets the print headings. |
CenterHorizontally | bool | Read/Write | Gets or sets the center horizontally. |
CenterVertically | bool | Read/Write | Gets or sets the center vertically. |
HorizontalPageBreaks | IReadOnlyList<int> | Read | Gets the horizontal page breaks. |
VerticalPageBreaks | IReadOnlyList<int> | Read | Gets the vertical page breaks. |
méthodes
| Signature | Description |
|---|---|
AddHorizontalPageBreak(rowIndex: int) | Adds a horizontal page break at the specified zero-based row index. |
AddVerticalPageBreak(columnIndex: int) | Adds a vertical page break at the specified zero-based column index. |
ClearHorizontalPageBreaks() | Removes all horizontal page breaks. |
ClearVerticalPageBreaks() | Removes all vertical page breaks. |
Voir aussi
- Aspose.Cells pour .NET — Enterprise API Reference
- Aspose.Cells pour .NET — Enterprise API Reference