Class PageConstants
Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)
Cette classe définit un ensemble de constantes qui décrivent une page.
Des objets de commodité sont fournis pour divers marges, orientations,
redimensionnements et tailles de page standard.
public class PageConstants
Héritage
Membres hérités
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Champs
BACKGROUND
Clé de fond
public const string BACKGROUND = "Background"
Valeur du champ
BACKGROUND_COLOR
Clé de couleur de fond
public const string BACKGROUND_COLOR = "BackgroundColor"
Valeur du champ
FIT_TO_PAGE
Clé pour ajuster le contenu à la page
public const string FIT_TO_PAGE = "FitToPage"
Valeur du champ
MARGINS_LARGE
Valeur des marges de page “Large”
public const string MARGINS_LARGE = "Large"
Valeur du champ
MARGINS_MEDIUM
Valeur des marges de page “Moyenne”
public const string MARGINS_MEDIUM = "Medium"
Valeur du champ
MARGINS_SMALL
Valeur des marges de page “Petite”
public const string MARGINS_SMALL = "Small"
Valeur du champ
MARGINS_ZERO
Valeur des marges de page “Zéro”
public const string MARGINS_ZERO = "Zero"
Valeur du champ
ORIENTATION
Clé d’orientation, pour l’orientation nommée de la page, Portrait ou Paysage.
public const string ORIENTATION = "Orientation"
Valeur du champ
ORIENTATION_BEST_FIT
Valeur d’orientation “Meilleure adaptation”
public const string ORIENTATION_BEST_FIT = "Best Fit"
Valeur du champ
ORIENTATION_LANDSCAPE
Valeur d’orientation “Paysage”
public const string ORIENTATION_LANDSCAPE = "Landscape"
Valeur du champ
ORIENTATION_PORTRAIT
Valeur d’orientation “Portrait”
public const string ORIENTATION_PORTRAIT = "Portrait"
Valeur du champ
PAGE_MARGINS
Clé des marges de page
public const string PAGE_MARGINS = "PageMargins"
Valeur du champ
PAGE_SIZE
Clé de taille de page
public const string PAGE_SIZE = "PageSize"
Valeur du champ
SIZE_A3
Valeur de taille de page “A3”
public const string SIZE_A3 = "A3"
Valeur du champ
SIZE_A4
Valeur de taille de page “A4”
public const string SIZE_A4 = "A4"
Valeur du champ
SIZE_A5
Valeur de taille de page “A5”
public const string SIZE_A5 = "A5"
Valeur du champ
SIZE_A6
Valeur de taille de page “A6”
public const string SIZE_A6 = "A6"
Valeur du champ
SIZE_EXECUTIVE
Valeur de taille de page “Exécutif”
public const string SIZE_EXECUTIVE = "Executive"
Valeur du champ
SIZE_INTERNATIONAL
Valeur de taille de page “International”
public const string SIZE_INTERNATIONAL = "International"
Valeur du champ
SIZE_LEDGER
Valeur de taille de page “Grand livre”
public const string SIZE_LEDGER = "Ledger"
Valeur du champ
SIZE_LEGAL
Valeur de taille de page “Légal”
public const string SIZE_LEGAL = "Legal"
Valeur du champ
SIZE_LETTER
Valeur de taille de page “Lettre”
public const string SIZE_LETTER = "Letter"
Valeur du champ
TRANSPARENT
Clé de fond transparent
public const string TRANSPARENT = "Transparent"
Valeur du champ
VIEWING_ORIENTATION
Clé d’orientation de visualisation, pour la matrice de rotation distinguant l’orientation du contenu sur la page. La matrice d’orientation de visualisation par défaut est l’identité.
public const string VIEWING_ORIENTATION = "ViewingOrientation"
Valeur du champ
Propriétés
OrientationList
public static string[] OrientationList { get; }
Valeur de la propriété
string[]
SizeList
public static string[] SizeList { get; }
Valeur de la propriété
string[]
Méthodes
GetMargins(string)
Obtient les valeurs des marges de page
Nom des marges de page prédéfiniespublic static Margins GetMargins(string marginsSize)
Paramètres
marginsSize
string
Retourne
GetMargins(Margins, string)
Calcule les marges de page dans l’orientation spécifiée
Marges originalesOrientation de la pagepublic static Margins GetMargins(Margins margins, string orientation)
Paramètres
margins
Margins
orientation
string
Retourne
GetSize(string)
Calcule la taille de la page en orientation de page “Portrait”
taille de page prédéfiniepublic static Size GetSize(string size)
Paramètres
size
string
Retourne
GetSize(string, string)
Calcule la taille de la page dans l’orientation de page donnée
taille de page prédéfinieorientation de la pagepublic static Size GetSize(string size, string orientation)
Paramètres
size
string
orientation
string
Retourne
GetSize(Size, string)
Calcule la taille de la page dans l’orientation de page donnée
Taille de page originaleOrientation de la pagepublic static Size GetSize(Size size, string orientation)
Paramètres
size
Size
orientation
string