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

NameTypeAccessDescription
PaperSizePaperSizeTypeRead/WriteGets or sets the paper size.
OrientationPageOrientationTypeRead/WriteGets or sets the orientation.
FirstPageNumberint?Read/WriteGets or sets the first page number.
Scaleint?Read/WriteGets or sets the scale.
FitToPagesWideint?Read/WriteGets or sets the fit to pages wide.
FitToPagesTallint?Read/WriteGets or sets the fit to pages tall.
PrintAreastringRead/WriteGets or sets the print area.
PrintTitleRowsstringRead/WriteGets or sets the print title rows.
PrintTitleColumnsstringRead/WriteGets or sets the print title columns.
LeftMargindoubleRead/WriteGets or sets the left margin.
RightMargindoubleRead/WriteGets or sets the right margin.
TopMargindoubleRead/WriteGets or sets the top margin.
BottomMargindoubleRead/WriteGets or sets the bottom margin.
HeaderMargindoubleRead/WriteGets or sets the header margin.
FooterMargindoubleRead/WriteGets or sets the footer margin.
LeftMarginInchdoubleRead/WriteGets or sets the left margin inch.
RightMarginInchdoubleRead/WriteGets or sets the right margin inch.
TopMarginInchdoubleRead/WriteGets or sets the top margin inch.
BottomMarginInchdoubleRead/WriteGets or sets the bottom margin inch.
HeaderMarginInchdoubleRead/WriteGets or sets the header margin inch.
FooterMarginInchdoubleRead/WriteGets or sets the footer margin inch.
LeftHeaderstringRead/WriteGets or sets the left header.
CenterHeaderstringRead/WriteGets or sets the center header.
RightHeaderstringRead/WriteGets or sets the right header.
LeftFooterstringRead/WriteGets or sets the left footer.
CenterFooterstringRead/WriteGets or sets the center footer.
RightFooterstringRead/WriteGets or sets the right footer.
PrintGridlinesboolRead/WriteGets or sets the print gridlines.
PrintHeadingsboolRead/WriteGets or sets the print headings.
CenterHorizontallyboolRead/WriteGets or sets the center horizontally.
CenterVerticallyboolRead/WriteGets or sets the center vertically.
HorizontalPageBreaksIReadOnlyList<int>ReadGets the horizontal page breaks.
VerticalPageBreaksIReadOnlyList<int>ReadGets the vertical page breaks.

méthodes

SignatureDescription
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
 Français