Class UserProperties
Nazwa przestrzeń: Aspose.Page Zgromadzenie: Aspose.Page.dll (25.4.0)
Specjalna klasa nieruchomości, która umożliwia ustawienie typowanych właściwości orazumożliwia również przechowywanie dwóch domyślnych obiektówdo wyszukiwania, jeśli ten obiekt nieruchomości nie zawiera nieruchomości.
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
Dziedziczeni członkowie
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()
Inicjalizuje pustą instancję klasy UserProperties.
public UserProperties()
UserProperties(Słownik <string, obiekt=» » »)
Inicjalizuje klasę UserProperties z standardowymi wartościami.
public UserProperties(Dictionary<string, object=""> defaults)
Parameters
defaults
Dictionary
• <
string
, object
>
Podstawowe wartości właściwości.
UserProperties(Słownik <string, obiekt="">, Słownik <string, obiekt=» » »)
Tworzenie właściwości Użytkownika z tabelą standardów i altDefaults,które są poszukiwane w tym porządku.
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
Parameters
defaults
Dictionary
• <
string
, object
>
Podstawowe wartości właściwości.
altDefaults
Dictionary
• <
string
, object
>
Alternatywne właściwości wartości.
Fields
AltDefaulty
Alternatywne właściwości wartości.
protected Dictionary<string, object=""> altDefaults
Wartość pola
Dictionary • < string , object >
Properties
Properties
Kopiowanie właściwości, w tym ich nieprawidłowości do tych właściwości użytkownika
public virtual Dictionary<string, object=""> Properties { set; }
Wartość nieruchomości
Dictionary • < string , object >
Methods
GetProperty(strumień)
Otrzymuje wartość własności.
public virtual string GetProperty(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetProperty(strumień, strumień)
W przypadku braku żądanego majątku zwraca się podana wartość domyślna.
public virtual string GetProperty(string key, string defValue)
Parameters
key
string
Imię własności.
defValue
string
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyColor(strumień)
Dostarcza kolorowej wartości własności.
public virtual Color GetPropertyColor(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyColor(strumień, kolor)
W przypadku braku żądanej nieruchomości zwraca się podana wartość domyślna.
public virtual Color GetPropertyColor(string key, Color defValue)
Parameters
key
string
Imię własności.
defValue
Color
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyDouble(strumień)
Otrzymuje podwójną wartość własności.
public virtual double GetPropertyDouble(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyDouble(Złoty, podwójny)
Otrzymuje podwójną wartość nieruchomości.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual double GetPropertyDouble(string key, double defValue)
Parameters
key
string
Imię własności.
defValue
double
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyFloat(strumień)
Otrzymuje wartość nieruchomości.
public virtual float GetPropertyFloat(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyFloat(Floty, Floty)
Otrzymuje wartość przepływu nieruchomości.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual float GetPropertyFloat(string key, float defValue)
Parameters
key
string
Imię własności.
defValue
float
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyInt(strumień)
otrzymuje całkowitą wartość własności.
public virtual int GetPropertyInt(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyInt(Źródło, int)
Otrzymuje całkowitą wartość nieruchomości.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual int GetPropertyInt(string key, int defValue)
Parameters
key
string
Imię własności.
defValue
int
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyMargins(strumień)
Otrzymuje wartość własności marży.
public virtual Margins GetPropertyMargins(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyMargins(Tłuszczyk, Margins)
W przypadku braku żądanego majątku zwraca się podana wartość domyślna.
public virtual Margins GetPropertyMargins(string key, Margins defValue)
Parameters
key
string
Imię własności.
defValue
Margins
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyMatrix(strumień)
Otrzymuje wartość własności matrycy.
public virtual Matrix GetPropertyMatrix(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyMatrix(Tłumaczenie, Matrix)
Otrzymuje wartość nieruchomości matrycy.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
Parameters
key
string
Imię własności.
defValue
Matrix
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyRectangle(strumień)
Otrzymuje wartość własności rektangularnej.
public virtual RectangleF GetPropertyRectangle(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertyRectangle(strumień, RectangleF)
Otrzymuje wartość nieruchomości rektangularnej.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
Parameters
key
string
Imię własności.
defValue
RectangleF
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertySize(strumień)
Otrzymuje wartość własności.
public virtual Size GetPropertySize(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
GetPropertySize(strumień, wielkość)
Otrzymuje wielkość wartości nieruchomości.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual Size GetPropertySize(string key, Size defValue)
Parameters
key
string
Imię własności.
defValue
Size
Podstawową wartość własności.
Returns
Wartość nieruchomości .
GetPropertyStringArray(strumień)
Otrzymuje wartość własności.
public virtual string[] GetPropertyStringArray(string key)
Parameters
key
string
Imię własności.
Returns
string [ ]
Wartość nieruchomości .
GetPropertyStringArray(strumień, strumień[])
W przypadku braku żądanego majątku zwraca się podana wartość domyślna.
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
Parameters
key
string
Imię własności.
defValue
string
[ ]
Podstawową wartość własności.
Returns
string [ ]
Wartość nieruchomości .
IsProperty(strumień)
Otrzymuje wartość własności boolean.
public virtual bool IsProperty(string key)
Parameters
key
string
Imię własności.
Returns
Wartość nieruchomości .
IsProperty(Złoty, Bool)
Otrzymuje wartość nieruchomości.Jeśli żądana nieruchomość jest nieobecna, zwraca się podana wartość domyślna.
public virtual bool IsProperty(string key, bool defValue)
Parameters
key
string
Imię własności.
defValue
bool
Podstawową wartość własności.
Returns
Wartość nieruchomości .
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
Powrót nazw nieruchomości.
public virtual IEnumerator<string> PropertyNames()
Returns
IEnumerator • < string >
Numery nazw nieruchomości.
SetProperty(strumień, strumień)
Wymień wartość własności.
public virtual object SetProperty(string key, string value)
Parameters
key
string
Imię własności.
value
string
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(strumień, strumień[])
Zestaw wartości własności array string.
public virtual object SetProperty(string key, string[] value)
Parameters
key
string
Imię własności.
value
string
[ ]
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>, strumień, strumień[])
Wyznacz wartość właściwości w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
string
[ ]
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(strumień, kolor)
Ustaw kolorową wartość własności.
public virtual object SetProperty(string key, Color value)
Parameters
key
string
Imię własności.
value
Color
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„">, strumień, kolor)
Ustaw wartość właściwości kolorów w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
Color
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Źródło, rektangle)
Ustaw wartość właściwości rektangularnej.
public virtual object SetProperty(string key, Rectangle value)
Parameters
key
string
Imię własności.
value
Rectangle
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„">, strumień, Rectangle)
Ustaw wartość właściwości rektangularnej w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
Rectangle
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Tłuszczyk, Margins)
Marża wartości własności.
public virtual object SetProperty(string key, Margins value)
Parameters
key
string
Imię własności.
value
Margins
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>, strumień, margins)
Wyznacz wartość własności marży w tabeli określonych własności.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
Margins
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(strumień, wielkość)
Wyznacza wartość własności.
public virtual object SetProperty(string key, Size value)
Parameters
key
string
Imię własności.
value
Size
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„">, strumień, rozmiar)
Ustaw wartość wielkości nieruchomości w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
Size
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Źródło, int)
Zestaw wartości własności w całości.
public virtual object SetProperty(string key, int value)
Parameters
key
string
Imię własności.
value
int
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>”, strumień, int)
Zestaw wartości całkowitej nieruchomości w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
int
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Złoty, podwójny)
Podwójna wartość nieruchomości.
public virtual object SetProperty(string key, double value)
Parameters
key
string
Imię własności.
value
double
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>, strumień, podwójny)
Ustaw podwójną wartość nieruchomości w tabeli określonych nieruchomości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
double
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Floty, Floty)
Ustaw wartość własności float.
public virtual object SetProperty(string key, float value)
Parameters
key
string
Imię własności.
value
float
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„">, strumień, float)
Wprowadź wartość nieruchomości w określonej tabeli właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
float
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Złoty, Bool)
Wartość własności boolean.
public virtual object SetProperty(string key, bool value)
Parameters
key
string
Imię własności.
value
bool
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>, strumień, bool)
Wprowadź wartość nieruchomości boolean w określonej tabeli właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
bool
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Tłumaczenie, Matrix)
Wartość własności matrycy.
public virtual object SetProperty(string key, Matrix value)
Parameters
key
string
Imię własności.
value
Matrix
Wartość własności .
Returns
Jest to nieruchomość.
SetProperty(Słownik <string, obiekt=„>”, strumień, matryca)
Ustaw wartość właściwości matrycy w tabeli określonych właściwości.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
Parameters
properties
Dictionary
• <
string
, object
>
Tabela właściwości .
key
string
Imię własności.
value
Matrix
Wartość własności .
Returns
Jest to nieruchomość.</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,>