Class UserProperties

Class UserProperties

Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)

Classe de propriété spéciale qui permet de définir et de retourner des propriétés typées. Elle permet également de connecter deux objets de propriété par défaut à rechercher si cet objet de propriété ne contient pas la propriété.

public class UserProperties : Dictionary<string, object="">, IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable, ISerializable, IDeserializationCallback

Héritage

objectDictionary<string, object="">UserProperties

Implémente

IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable, ISerializable, IDeserializationCallback

Membres hérités

Dictionary<string, object="">.Add(string, object), Dictionary<string, object="">.Clear(), Dictionary<string, object="">.ContainsKey(string), Dictionary<string, object="">.ContainsValue(object), Dictionary<string, object="">.GetEnumerator(), Dictionary<string, object="">.OnDeserialization(object?), Dictionary<string, object="">.Remove(string), Dictionary<string, object="">.Remove(string, out object), Dictionary<string, object="">.TryGetValue(string, out object), Dictionary<string, object="">.TryAdd(string, object), Dictionary<string, object="">.EnsureCapacity(int), Dictionary<string, object="">.TrimExcess(), Dictionary<string, object="">.TrimExcess(int), Dictionary<string, object="">.Comparer, Dictionary<string, object="">.Count, Dictionary<string, object="">.Keys, Dictionary<string, object="">.Values, Dictionary<string, object="">.this[string], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructeurs

UserProperties()

Initialise une instance vide de la classe UserProperties.

public UserProperties()

UserProperties(Dictionary<string, object="">)

Initialise une instance de la classe UserProperties avec des valeurs par défaut.

public UserProperties(Dictionary<string, object=""> defaults)

Paramètres

defaults Dictionary<string, object&gt;

Valeurs par défaut des propriétés.

UserProperties(Dictionary<string, object="">, Dictionary<string, object="">)

Construit UserProperties avec une table defaults et altDefaults, qui sont recherchées dans cet ordre.

public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)

Paramètres

defaults Dictionary<string, object&gt;

Valeurs par défaut des propriétés.

altDefaults Dictionary<string, object&gt;

Valeurs des propriétés alternatives.

Champs

altDefaults

Valeurs des propriétés alternatives.

protected Dictionary<string, object=""> altDefaults

Valeur du champ

Dictionary<string, object&gt;

Propriétés

Properties

Copie les propriétés, y compris ses valeurs par défaut, dans cette UserProperties.

public virtual Dictionary<string, object=""> Properties { set; }

Valeur de la propriété

Dictionary<string, object&gt;

Méthodes

GetProperty(string)

Obtient la valeur de la propriété de type string.

public virtual string GetProperty(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

string

Valeur de la propriété.

GetProperty(string, string)

Obtient la valeur de la propriété de type string. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual string GetProperty(string key, string defValue)

Paramètres

key string

Le nom de la propriété.

defValue string

Valeur par défaut de la propriété.

Retourne

string

Valeur de la propriété.

GetPropertyColor(string)

Obtient la valeur de la propriété de couleur.

public virtual Color GetPropertyColor(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

Color

Valeur de la propriété.

GetPropertyColor(string, Color)

Obtient la valeur de la propriété de couleur. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual Color GetPropertyColor(string key, Color defValue)

Paramètres

key string

Le nom de la propriété.

defValue Color

Valeur par défaut de la propriété.

Retourne

Color

Valeur de la propriété.

GetPropertyDouble(string)

Obtient la valeur de la propriété de type double.

public virtual double GetPropertyDouble(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

double

Valeur de la propriété.

GetPropertyDouble(string, double)

Obtient la valeur de la propriété de type double. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual double GetPropertyDouble(string key, double defValue)

Paramètres

key string

Le nom de la propriété.

defValue double

Valeur par défaut de la propriété.

Retourne

double

Valeur de la propriété.

GetPropertyFloat(string)

Obtient la valeur de la propriété de type float.

public virtual float GetPropertyFloat(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

float

Valeur de la propriété.

GetPropertyFloat(string, float)

Obtient la valeur de la propriété de type float. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual float GetPropertyFloat(string key, float defValue)

Paramètres

key string

Le nom de la propriété.

defValue float

Valeur par défaut de la propriété.

Retourne

float

Valeur de la propriété.

GetPropertyInt(string)

Obtient la valeur de la propriété de type entier.

public virtual int GetPropertyInt(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

int

Valeur de la propriété.

GetPropertyInt(string, int)

Obtient la valeur de la propriété de type entier. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual int GetPropertyInt(string key, int defValue)

Paramètres

key string

Le nom de la propriété.

defValue int

Valeur par défaut de la propriété.

Retourne

int

Valeur de la propriété.

GetPropertyMargins(string)

Obtient la valeur de la propriété des marges.

public virtual Margins GetPropertyMargins(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

Margins

Valeur de la propriété.

GetPropertyMargins(string, Margins)

Obtient la valeur de la propriété des marges. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual Margins GetPropertyMargins(string key, Margins defValue)

Paramètres

key string

Le nom de la propriété.

defValue Margins

Valeur par défaut de la propriété.

Retourne

Margins

Valeur de la propriété.

GetPropertyMatrix(string)

Obtient la valeur de la propriété de type matrice.

public virtual Matrix GetPropertyMatrix(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

Matrix

Valeur de la propriété.

GetPropertyMatrix(string, Matrix)

Obtient la valeur de la propriété de type matrice. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)

Paramètres

key string

Le nom de la propriété.

defValue Matrix

Valeur par défaut de la propriété.

Retourne

Matrix

Valeur de la propriété.

GetPropertyRectangle(string)

Obtient la valeur de la propriété de type rectangle.

public virtual RectangleF GetPropertyRectangle(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

RectangleF

Valeur de la propriété.

GetPropertyRectangle(string, RectangleF)

Obtient la valeur de la propriété de type rectangle. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)

Paramètres

key string

Le nom de la propriété.

defValue RectangleF

Valeur par défaut de la propriété.

Retourne

RectangleF

Valeur de la propriété.

GetPropertySize(string)

Obtient la valeur de la propriété de type taille.

public virtual Size GetPropertySize(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

Size

Valeur de la propriété.

GetPropertySize(string, Size)

Obtient la valeur de la propriété de type taille. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual Size GetPropertySize(string key, Size defValue)

Paramètres

key string

Le nom de la propriété.

defValue Size

Valeur par défaut de la propriété.

Retourne

Size

Valeur de la propriété.

GetPropertyStringArray(string)

Obtient la valeur de la propriété de tableau de chaînes.

public virtual string[] GetPropertyStringArray(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

string[]

Valeur de la propriété.

GetPropertyStringArray(string, string[])

Obtient la valeur de la propriété de tableau de chaînes. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual string[] GetPropertyStringArray(string key, string[] defValue)

Paramètres

key string

Le nom de la propriété.

defValue string[]

Valeur par défaut de la propriété.

Retourne

string[]

Valeur de la propriété.

IsProperty(string)

Obtient la valeur de la propriété booléenne.

public virtual bool IsProperty(string key)

Paramètres

key string

Le nom de la propriété.

Retourne

bool

Valeur de la propriété.

IsProperty(string, bool)

Obtient la valeur de la propriété booléenne. Si la propriété demandée est absente, retourne la valeur par défaut fournie.

public virtual bool IsProperty(string key, bool defValue)

Paramètres

key string

Le nom de la propriété.

defValue bool

Valeur par défaut de la propriété.

Retourne

bool

Valeur de la propriété.

PrintProperties()

public virtual void PrintProperties()

PropertyNames()

Retourne les noms des propriétés.

public virtual IEnumerator<string> PropertyNames()

Retourne

IEnumerator<string&gt;

Énumérateur des noms des propriétés.

SetProperty(string, string)

Définit la valeur de la propriété de type string.

public virtual object SetProperty(string key, string value)

Paramètres

key string

Le nom de la propriété.

value string

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, string[])

Définit la valeur de la propriété de tableau de chaînes.

public virtual object SetProperty(string key, string[] value)

Paramètres

key string

Le nom de la propriété.

value string[]

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, string[])

Définit la valeur de la propriété de tableau de chaînes dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value string[]

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, Color)

Définit la valeur de la propriété de couleur.

public virtual object SetProperty(string key, Color value)

Paramètres

key string

Le nom de la propriété.

value Color

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, Color)

Définit la valeur de la propriété de couleur dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value Color

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, Rectangle)

Définit la valeur de la propriété de rectangle.

public virtual object SetProperty(string key, Rectangle value)

Paramètres

key string

Le nom de la propriété.

value Rectangle

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, Rectangle)

Définit la valeur de la propriété de rectangle dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value Rectangle

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, Margins)

Définit la valeur de la propriété des marges.

public virtual object SetProperty(string key, Margins value)

Paramètres

key string

Le nom de la propriété.

value Margins

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, Margins)

Définit la valeur de la propriété des marges dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value Margins

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, Size)

Définit la valeur de la propriété de taille.

public virtual object SetProperty(string key, Size value)

Paramètres

key string

Le nom de la propriété.

value Size

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, Size)

Définit la valeur de la propriété de taille dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value Size

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, int)

Définit la valeur de la propriété de type entier.

public virtual object SetProperty(string key, int value)

Paramètres

key string

Le nom de la propriété.

value int

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, int)

Définit la valeur de la propriété de type entier dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value int

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, double)

Définit la valeur de la propriété de type double.

public virtual object SetProperty(string key, double value)

Paramètres

key string

Le nom de la propriété.

value double

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, double)

Définit la valeur de la propriété de type double dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value double

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, float)

Définit la valeur de la propriété de type float.

public virtual object SetProperty(string key, float value)

Paramètres

key string

Le nom de la propriété.

value float

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, float)

Définit la valeur de la propriété de type float dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value float

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, bool)

Définit la valeur de la propriété booléenne.

public virtual object SetProperty(string key, bool value)

Paramètres

key string

Le nom de la propriété.

value bool

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, bool)

Définit la valeur de la propriété booléenne dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value bool

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(string, Matrix)

Définit la valeur de la propriété de matrice.

public virtual object SetProperty(string key, Matrix value)

Paramètres

key string

Le nom de la propriété.

value Matrix

La valeur de la propriété.

Retourne

object

Une propriété.

SetProperty(Dictionary<string, object="">, string, Matrix)

Définit la valeur de la propriété de matrice dans la table de propriétés spécifiée.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)

Paramètres

properties Dictionary<string, object&gt;

La table de propriétés.

key string

Le nom de la propriété.

value Matrix

La valeur de la propriété.

Retourne

object

Une propriété.

 Français