Class UserProperties
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
Classe di proprietà speciale che consente di impostare e restituire proprietà tipizzate. Consente anche di collegare due oggetti di proprietà predefiniti da cercare se questo oggetto di proprietà non contiene la proprietà.
public class UserProperties : Dictionary<string, object="">, IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">>, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">>, IEnumerable<keyvaluepair<string, object="">>, IEnumerable, ISerializable, IDeserializationCallback
Ereditarietà
object ← Dictionary<string, object=""> ← UserProperties
Implementa
IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">>, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">>, IEnumerable<keyvaluepair<string, object="">>, IEnumerable, ISerializable, IDeserializationCallback
Membri ereditati
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()
Costruttori
UserProperties()
Inizializza un’istanza vuota della classe UserProperties.
public UserProperties()
UserProperties(Dictionary<string, object="">)
Inizializza un’istanza della classe UserProperties con valori predefiniti.
public UserProperties(Dictionary<string, object=""> defaults)
Parametri
defaults
Dictionary<string, object>
Valori delle proprietà predefiniti.
UserProperties(Dictionary<string, object="">, Dictionary<string, object="">)
Costruisce UserProperties con una tabella defaults e altDefaults, che vengono cercate in quest’ordine.
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
Parametri
defaults
Dictionary<string, object>
Valori delle proprietà predefiniti.
altDefaults
Dictionary<string, object>
Valori delle proprietà alternativi.
Campi
altDefaults
Valori delle proprietà alternativi.
protected Dictionary<string, object=""> altDefaults
Valore del campo
Dictionary<string, object>
Proprietà
Properties
Copia le proprietà, inclusi i suoi valori predefiniti in questo UserProperties
public virtual Dictionary<string, object=""> Properties { set; }
Valore della proprietà
Dictionary<string, object>
Metodi
GetProperty(string)
Ottiene il valore della proprietà di tipo stringa.
public virtual string GetProperty(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetProperty(string, string)
Ottiene il valore della proprietà di tipo stringa. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual string GetProperty(string key, string defValue)
Parametri
key
string
Il nome della proprietà.
defValue
string
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyColor(string)
Ottiene il valore della proprietà di tipo colore.
public virtual Color GetPropertyColor(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyColor(string, Color)
Ottiene il valore della proprietà di tipo colore. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual Color GetPropertyColor(string key, Color defValue)
Parametri
key
string
Il nome della proprietà.
defValue
Color
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyDouble(string)
Ottiene il valore della proprietà di tipo double.
public virtual double GetPropertyDouble(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyDouble(string, double)
Ottiene il valore della proprietà di tipo double. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual double GetPropertyDouble(string key, double defValue)
Parametri
key
string
Il nome della proprietà.
defValue
double
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyFloat(string)
Ottiene il valore della proprietà di tipo float.
public virtual float GetPropertyFloat(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyFloat(string, float)
Ottiene il valore della proprietà di tipo float. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual float GetPropertyFloat(string key, float defValue)
Parametri
key
string
Il nome della proprietà.
defValue
float
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyInt(string)
Ottiene il valore della proprietà di tipo intero.
public virtual int GetPropertyInt(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyInt(string, int)
Ottiene il valore della proprietà di tipo intero. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual int GetPropertyInt(string key, int defValue)
Parametri
key
string
Il nome della proprietà.
defValue
int
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyMargins(string)
Ottiene il valore della proprietà margini.
public virtual Margins GetPropertyMargins(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyMargins(string, Margins)
Ottiene il valore della proprietà margini. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual Margins GetPropertyMargins(string key, Margins defValue)
Parametri
key
string
Il nome della proprietà.
defValue
Margins
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyMatrix(string)
Ottiene il valore della proprietà matrice.
public virtual Matrix GetPropertyMatrix(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyMatrix(string, Matrix)
Ottiene il valore della proprietà matrice. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
Parametri
key
string
Il nome della proprietà.
defValue
Matrix
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyRectangle(string)
Ottiene il valore della proprietà rettangolo.
public virtual RectangleF GetPropertyRectangle(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertyRectangle(string, RectangleF)
Ottiene il valore della proprietà rettangolo. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
Parametri
key
string
Il nome della proprietà.
defValue
RectangleF
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertySize(string)
Ottiene il valore della proprietà dimensione.
public virtual Size GetPropertySize(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
GetPropertySize(string, Size)
Ottiene il valore della proprietà dimensione. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual Size GetPropertySize(string key, Size defValue)
Parametri
key
string
Il nome della proprietà.
defValue
Size
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
GetPropertyStringArray(string)
Ottiene il valore della proprietà array di stringhe.
public virtual string[] GetPropertyStringArray(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
string[]
Valore della proprietà.
GetPropertyStringArray(string, string[])
Ottiene il valore della proprietà array di stringhe. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
Parametri
key
string
Il nome della proprietà.
defValue
string[]
Valore predefinito della proprietà.
Restituisce
string[]
Valore della proprietà.
IsProperty(string)
Ottiene il valore della proprietà booleana.
public virtual bool IsProperty(string key)
Parametri
key
string
Il nome della proprietà.
Restituisce
Valore della proprietà.
IsProperty(string, bool)
Ottiene il valore della proprietà booleana. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual bool IsProperty(string key, bool defValue)
Parametri
key
string
Il nome della proprietà.
defValue
bool
Valore predefinito della proprietà.
Restituisce
Valore della proprietà.
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
Restituisce i nomi delle proprietà.
public virtual IEnumerator<string> PropertyNames()
Restituisce
IEnumerator<string>
Enumerator dei nomi delle proprietà.
SetProperty(string, string)
Imposta il valore della proprietà di tipo stringa.
public virtual object SetProperty(string key, string value)
Parametri
key
string
Il nome della proprietà.
value
string
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, string[])
Imposta il valore della proprietà array di stringhe.
public virtual object SetProperty(string key, string[] value)
Parametri
key
string
Il nome della proprietà.
value
string[]
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, string[])
Imposta il valore della proprietà array di stringhe nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
string[]
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, Color)
Imposta il valore della proprietà colore.
public virtual object SetProperty(string key, Color value)
Parametri
key
string
Il nome della proprietà.
value
Color
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, Color)
Imposta il valore della proprietà colore nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Color
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, Rectangle)
Imposta il valore della proprietà rettangolo.
public virtual object SetProperty(string key, Rectangle value)
Parametri
key
string
Il nome della proprietà.
value
Rectangle
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, Rectangle)
Imposta il valore della proprietà rettangolo nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Rectangle
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, Margins)
Imposta il valore della proprietà margini.
public virtual object SetProperty(string key, Margins value)
Parametri
key
string
Il nome della proprietà.
value
Margins
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, Margins)
Imposta il valore della proprietà margini nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Margins
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, Size)
Imposta il valore della proprietà dimensione.
public virtual object SetProperty(string key, Size value)
Parametri
key
string
Il nome della proprietà.
value
Size
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, Size)
Imposta il valore della proprietà dimensione nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Size
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, int)
Imposta il valore della proprietà intero.
public virtual object SetProperty(string key, int value)
Parametri
key
string
Il nome della proprietà.
value
int
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, int)
Imposta il valore della proprietà intero nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
int
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, double)
Imposta il valore della proprietà double.
public virtual object SetProperty(string key, double value)
Parametri
key
string
Il nome della proprietà.
value
double
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, double)
Imposta il valore della proprietà double nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
double
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, float)
Imposta il valore della proprietà float.
public virtual object SetProperty(string key, float value)
Parametri
key
string
Il nome della proprietà.
value
float
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, float)
Imposta il valore della proprietà float nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
float
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, bool)
Imposta il valore della proprietà booleana.
public virtual object SetProperty(string key, bool value)
Parametri
key
string
Il nome della proprietà.
value
bool
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, bool)
Imposta il valore della proprietà booleana nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
bool
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(string, Matrix)
Imposta il valore della proprietà matrice.
public virtual object SetProperty(string key, Matrix value)
Parametri
key
string
Il nome della proprietà.
value
Matrix
Il valore della proprietà.
Restituisce
Una proprietà.
SetProperty(Dictionary<string, object="">, string, Matrix)
Imposta il valore della proprietà matrice nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
Parametri
properties
Dictionary<string, object>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Matrix
Il valore della proprietà.
Restituisce
Una proprietà.