Partager via


PageMargins Structure

Stocke les paramètres de marge de page d'un rapport.

Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe PageMargins.

System.Object
   System.ValueType
      PageMargins

[Visual Basic]

Public Structure PageMargins
   Inherits ValueType

[C#]

public struct PageMargins : ValueType

Exemple

[Visual Basic]

      Private Sub SetMargins(ByVal left As Integer, ByVal top As Integer, ByVal right As Integer, ByVal bottom As Integer)
         Dim margins As PageMargins
      
         margins = Report.PrintOptions.PageMargins
         margins.leftMargin = left
         margins.topMargin = top
         margins.rightMargin = right
         margins.bottomMargin = bottom
      
         Report.PrintOptions.ApplyPageMargins(margins)
      End Sub
      
[C++]

      static void SetMargins(int left, int top, int right, int bottom)
      {
         PageMargins margins;
      
         margins = Report->PrintOptions->PageMargins;
         margins.leftMargin = left;
         margins.topMargin = top;
         margins.rightMargin = right;
         margins.bottomMargin = bottom;
      
         Report->PrintOptions->ApplyPageMargins(margins);
      };
      
[C#]

      private void SetMargins(int left, int top, int right, int bottom)
      {
         PageMargins margins;
      
         margins = Report.PrintOptions.PageMargins;
         margins.leftMargin = left;
         margins.topMargin = top;
         margins.rightMargin = right;
         margins.bottomMargin = bottom;
      
         Report.PrintOptions.ApplyPageMargins(margins);
      }
      

Configuration requise

Espace de noms CrystalDecisions.Shared

Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Voir aussi

PageMargins Membres | CrystalDecisions.Shared Espace de noms

**

©2005 Business Objects SA. Tous droits réservés.

Business Objects SA.
http://www.france.businessobjects.com/
Services de support
http://www.businessobjects.com/support/