Class UserProperties
Il nome: Aspose.Page Assemblea: Aspose.Page.dll (25.4.0)
Classe di proprietà speciale che consente di impostare proprietà tipizzate eritorno. consente anche la cattura di due oggetti di proprietà predefinitaper essere ricercato 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
Inheritance
object ← Dictionary<string, object=""> ← UserProperties
Implements
IDictionary<string, object=""> , ICollection<keyvaluepair<string, object="">> , IDictionary , ICollection , IReadOnlyDictionary<string, object=""> , IReadOnlyCollection<keyvaluepair<string, object="">> , IEnumerable<keyvaluepair<string, object="">> , IEnumerable , ISerializable , IDeserializationCallback
I membri ereditari
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()
Constructors
UserProperties()
Inizia una instanza vuota della classe UserProperties.
public UserProperties()
UserProperties(Scrivi una recensione per String, Object=» » »)
Inizializza una classe UserProperties con valori predefiniti.
public UserProperties(Dictionary<string, object=""> defaults)
Parameters
defaults
Dictionary
di <
string
, object
>
Valori di proprietà predefinite.
UserProperties(Scrivi una recensione per String, Object="">, Dictionary<string, oggetto=» » »)
Costruisce Proprietà utente con una tabella di default e altDefaults,che sono ricercati in tale ordine.
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
Parameters
defaults
Dictionary
di <
string
, object
>
Valori di proprietà predefinite.
altDefaults
Dictionary
di <
string
, object
>
Valori di proprietà alternative.
Fields
AltDefault
Valori di proprietà alternative.
protected Dictionary<string, object=""> altDefaults
Valore di campo
Dictionary di < string , object >
Properties
Properties
Copia le proprietà, compresi i loro default in questa proprietà utente
public virtual Dictionary<string, object=""> Properties { set; }
Valore di proprietà
Dictionary di < string , object >
Methods
GetProperty(String)
Riceve il valore della proprietà.
public virtual string GetProperty(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetProperty(String e String)
Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual string GetProperty(string key, string defValue)
Parameters
key
string
Il nome della proprietà.
defValue
string
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyColor(String)
Riceve il valore della proprietà colorata.
public virtual Color GetPropertyColor(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyColor(String, colore)
Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual Color GetPropertyColor(string key, Color defValue)
Parameters
key
string
Il nome della proprietà.
defValue
Color
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyDouble(String)
Riceve il doppio valore immobiliare.
public virtual double GetPropertyDouble(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyDouble(Strumento, doppio)
Riceve il doppio valore della proprietà.Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual double GetPropertyDouble(string key, double defValue)
Parameters
key
string
Il nome della proprietà.
defValue
double
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyFloat(String)
Riceve il valore della proprietà.
public virtual float GetPropertyFloat(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyFloat(Strumento, Float)
Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual float GetPropertyFloat(string key, float defValue)
Parameters
key
string
Il nome della proprietà.
defValue
float
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyInt(String)
Riceve il valore totale della proprietà.
public virtual int GetPropertyInt(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyInt(di string, int)
Riceve valore integrale della proprietà.Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual int GetPropertyInt(string key, int defValue)
Parameters
key
string
Il nome della proprietà.
defValue
int
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyMargins(String)
Riceve i margini del valore della proprietà.
public virtual Margins GetPropertyMargins(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyMargins(Il marchio, Margins)
Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual Margins GetPropertyMargins(string key, Margins defValue)
Parameters
key
string
Il nome della proprietà.
defValue
Margins
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyMatrix(String)
Riceve il valore di proprietà della matrice.
public virtual Matrix GetPropertyMatrix(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyMatrix(Strumento, Matrix)
Riceve il valore della proprietà matrice.Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
Parameters
key
string
Il nome della proprietà.
defValue
Matrix
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyRectangle(String)
Riceve il valore della proprietà rettangolare.
public virtual RectangleF GetPropertyRectangle(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertyRectangle(String, RectangleF)
Riceve valore di proprietà rettangolare.Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
Parameters
key
string
Il nome della proprietà.
defValue
RectangleF
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertySize(String)
Riceve il valore della proprietà.
public virtual Size GetPropertySize(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
GetPropertySize(String, dimensioni)
Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual Size GetPropertySize(string key, Size defValue)
Parameters
key
string
Il nome della proprietà.
defValue
Size
Valore default della proprietà.
Returns
Valore della proprietà.
GetPropertyStringArray(String)
Riceve il valore della proprietà.
public virtual string[] GetPropertyStringArray(string key)
Parameters
key
string
Il nome della proprietà.
Returns
string [ ]
Valore della proprietà.
GetPropertyStringArray(String e String[])
Se la proprietà richiesta è assente, ritorna il valore predefinito fornito.
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
Parameters
key
string
Il nome della proprietà.
defValue
string
[ ]
Valore default della proprietà.
Returns
string [ ]
Valore della proprietà.
IsProperty(String)
Riceve il valore della proprietà booleana.
public virtual bool IsProperty(string key)
Parameters
key
string
Il nome della proprietà.
Returns
Valore della proprietà.
IsProperty(String e Bool)
Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
public virtual bool IsProperty(string key, bool defValue)
Parameters
key
string
Il nome della proprietà.
defValue
bool
Valore default della proprietà.
Returns
Valore della proprietà.
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
Il ritorno dei nomi di proprietà.
public virtual IEnumerator<string> PropertyNames()
Returns
IEnumerator di < string >
Elenco dei nomi di proprietà.
SetProperty(String e String)
Inserisci il valore di proprietà string.
public virtual object SetProperty(string key, string value)
Parameters
key
string
Il nome della proprietà.
value
string
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(String e String[])
Set string array valore di proprietà.
public virtual object SetProperty(string key, string[] value)
Parameters
key
string
Il nome della proprietà.
value
string
[ ]
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“String, string e string”[])
Inserisci il valore di proprietà di string array nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
string
[ ]
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(String, colore)
Imposta il valore della proprietà colorata.
public virtual object SetProperty(string key, Color value)
Parameters
key
string
Il nome della proprietà.
value
Color
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“>, string, colore)
Inserisci il valore delle proprietà di colore nella tabella delle proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Color
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Strumento, Rectangle)
Imposta il valore della proprietà rettangolare.
public virtual object SetProperty(string key, Rectangle value)
Parameters
key
string
Il nome della proprietà.
value
Rectangle
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“>, string, retangolo)
Imposta il valore di proprietà rettangolare nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Rectangle
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Il marchio, Margins)
Il margine del valore della proprietà.
public virtual object SetProperty(string key, Margins value)
Parameters
key
string
Il nome della proprietà.
value
Margins
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=«>, string, margini)
Inserisci il valore di proprietà margine nella tabella di proprietà specificata.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Margins
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(String, dimensioni)
La dimensione del valore della proprietà.
public virtual object SetProperty(string key, Size value)
Parameters
key
string
Il nome della proprietà.
value
Size
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“>, string, dimensioni)
Imposta la dimensione del valore di proprietà nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Size
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(di string, int)
Il valore integrale della proprietà.
public virtual object SetProperty(string key, int value)
Parameters
key
string
Il nome della proprietà.
value
int
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“”, string, int)
Inserisci il valore integrale della proprietà nella tabella di proprietà specificata.
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
int
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Strumento, doppio)
Il doppio valore della proprietà.
public virtual object SetProperty(string key, double value)
Parameters
key
string
Il nome della proprietà.
value
double
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“>, string, doppio)
Imposta il doppio valore di proprietà nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
double
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Strumento, Float)
Imposta il valore della proprietà float.
public virtual object SetProperty(string key, float value)
Parameters
key
string
Il nome della proprietà.
value
float
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=“”, string, float)
Inserisci il valore della proprietà flotta nella tabella di proprietà specificata.
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
float
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(String e Bool)
Il valore della proprietà booleana.
public virtual object SetProperty(string key, bool value)
Parameters
key
string
Il nome della proprietà.
value
bool
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=">, string e bool)
Inserisci il valore di proprietà boolean nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
bool
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Strumento, Matrix)
Il valore della proprietà matrizionale.
public virtual object SetProperty(string key, Matrix value)
Parameters
key
string
Il nome della proprietà.
value
Matrix
Il valore della proprietà.
Returns
Una proprietà .
SetProperty(Scrivi una recensione per String, Object=">, string, matrice)
Inserisci il valore di proprietà di matrice nella tabella di proprietà specificate.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
Parameters
properties
Dictionary
di <
string
, object
>
La tabella delle proprietà.
key
string
Il nome della proprietà.
value
Matrix
Il valore della proprietà.
Returns
Una proprietà .</string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></keyvaluepair<string,></keyvaluepair<string,></string,></keyvaluepair<string,></string,></string,></keyvaluepair<string,></keyvaluepair<string,></string,></keyvaluepair<string,></string,></string,>