Class UserProperties
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
מחלקת מאפיינים מיוחדת המאפשרת להגדיר ולהחזיר מאפיינים טיפוסיים. היא גם מאפשרת לחבר שני אובייקטי מאפיינים ברירת מחדל שיכולים להיחפש אם אובייקט המאפיינים הזה אינו מכיל את המאפיין.
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
ירושה
object ← Dictionary<string, object=""> ← UserProperties
מיישם
IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">>, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">>, IEnumerable<keyvaluepair<string, object="">>, IEnumerable, ISerializable, IDeserializationCallback
חברים שהורשו
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()
קונסטרוקטורים
UserProperties()
מאתחל מופע ריק של מחלקת UserProperties.
public UserProperties()
UserProperties(Dictionary<string, object="">)
מאתחל מופע של מחלקת UserProperties עם ערכי ברירת מחדל.
public UserProperties(Dictionary<string, object=""> defaults)
פרמטרים
defaults
Dictionary<string, object>
ערכי המאפיינים ברירת המחדל.
UserProperties(Dictionary<string, object="">, Dictionary<string, object="">)
בונה את UserProperties עם טבלת defaults ו-altDefaults, אשר מחפשים בסדר הזה.
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
פרמטרים
defaults
Dictionary<string, object>
ערכי המאפיינים ברירת המחדל.
altDefaults
Dictionary<string, object>
ערכי המאפיינים האלטרנטיביים.
שדות
altDefaults
ערכי המאפיינים האלטרנטיביים.
protected Dictionary<string, object=""> altDefaults
ערך השדה
Dictionary<string, object>
מאפיינים
Properties
מעתיק מאפיינים, כולל את ברירות המחדל שלו לתוך ה-UserProperties הזה
public virtual Dictionary<string, object=""> Properties { set; }
ערך המאפיין
Dictionary<string, object>
שיטות
GetProperty(string)
מקבל את ערך המאפיין מסוג מיתר.
public virtual string GetProperty(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetProperty(string, string)
מקבל את ערך המאפיין מסוג מיתר. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual string GetProperty(string key, string defValue)
פרמטרים
key
string
שם המאפיין.
defValue
string
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyColor(string)
מקבל את ערך המאפיין מסוג צבע.
public virtual Color GetPropertyColor(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyColor(string, Color)
מקבל את ערך המאפיין מסוג צבע. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual Color GetPropertyColor(string key, Color defValue)
פרמטרים
key
string
שם המאפיין.
defValue
Color
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyDouble(string)
מקבל את ערך המאפיין מסוג כפול.
public virtual double GetPropertyDouble(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyDouble(string, double)
מקבל את ערך המאפיין מסוג כפול. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual double GetPropertyDouble(string key, double defValue)
פרמטרים
key
string
שם המאפיין.
defValue
double
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyFloat(string)
מקבל את ערך המאפיין מסוג צף.
public virtual float GetPropertyFloat(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyFloat(string, float)
מקבל את ערך המאפיין מסוג צף. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual float GetPropertyFloat(string key, float defValue)
פרמטרים
key
string
שם המאפיין.
defValue
float
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyInt(string)
מקבל את ערך המאפיין מסוג שלם.
public virtual int GetPropertyInt(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyInt(string, int)
מקבל את ערך המאפיין מסוג שלם. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual int GetPropertyInt(string key, int defValue)
פרמטרים
key
string
שם המאפיין.
defValue
int
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyMargins(string)
מקבל את ערך המאפיין של שוליים.
public virtual Margins GetPropertyMargins(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyMargins(string, Margins)
מקבל את ערך המאפיין של שוליים. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual Margins GetPropertyMargins(string key, Margins defValue)
פרמטרים
key
string
שם המאפיין.
defValue
Margins
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyMatrix(string)
מקבל את ערך המאפיין של מטריצה.
public virtual Matrix GetPropertyMatrix(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyMatrix(string, Matrix)
מקבל את ערך המאפיין של מטריצה. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
פרמטרים
key
string
שם המאפיין.
defValue
Matrix
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyRectangle(string)
מקבל את ערך המאפיין של מלבן.
public virtual RectangleF GetPropertyRectangle(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertyRectangle(string, RectangleF)
מקבל את ערך המאפיין של מלבן. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
פרמטרים
key
string
שם המאפיין.
defValue
RectangleF
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertySize(string)
מקבל את ערך המאפיין של גודל.
public virtual Size GetPropertySize(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
GetPropertySize(string, Size)
מקבל את ערך המאפיין של גודל. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual Size GetPropertySize(string key, Size defValue)
פרמטרים
key
string
שם המאפיין.
defValue
Size
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
GetPropertyStringArray(string)
מקבל את ערך המאפיין של מערך מיתרים.
public virtual string[] GetPropertyStringArray(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
string[]
ערך המאפיין.
GetPropertyStringArray(string, string[])
מקבל את ערך המאפיין של מערך מיתרים. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
פרמטרים
key
string
שם המאפיין.
defValue
string[]
ערך ברירת המחדל של המאפיין.
מחזיר
string[]
ערך המאפיין.
IsProperty(string)
מקבל את ערך המאפיין הבוליאני.
public virtual bool IsProperty(string key)
פרמטרים
key
string
שם המאפיין.
מחזיר
ערך המאפיין.
IsProperty(string, bool)
מקבל את ערך המאפיין הבוליאני. אם המאפיין המבוקש אינו קיים, מחזיר את ערך ברירת המחדל שניתן.
public virtual bool IsProperty(string key, bool defValue)
פרמטרים
key
string
שם המאפיין.
defValue
bool
ערך ברירת המחדל של המאפיין.
מחזיר
ערך המאפיין.
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
מחזיר את שמות המאפיינים.
public virtual IEnumerator<string> PropertyNames()
מחזיר
IEnumerator<string>
Enumerator של שמות המאפיינים.
SetProperty(string, string)
מגדיר את ערך המאפיין מסוג מיתר.
public virtual object SetProperty(string key, string value)
פרמטרים
key
string
שם המאפיין.
value
string
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, string[])
מגדיר את ערך המאפיין של מערך מיתרים.
public virtual object SetProperty(string key, string[] value)
פרמטרים
key
string
שם המאפיין.
value
string[]
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, string[])
מגדיר את ערך המאפיין של מערך מיתרים בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
string[]
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, Color)
מגדיר את ערך המאפיין מסוג צבע.
public virtual object SetProperty(string key, Color value)
פרמטרים
key
string
שם המאפיין.
value
Color
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, Color)
מגדיר את ערך המאפיין מסוג צבע בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
Color
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, Rectangle)
מגדיר את ערך המאפיין של מלבן.
public virtual object SetProperty(string key, Rectangle value)
פרמטרים
key
string
שם המאפיין.
value
Rectangle
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, Rectangle)
מגדיר את ערך המאפיין של מלבן בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
Rectangle
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, Margins)
מגדיר את ערך המאפיין של שוליים.
public virtual object SetProperty(string key, Margins value)
פרמטרים
key
string
שם המאפיין.
value
Margins
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, Margins)
מגדיר את ערך המאפיין של שוליים בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
Margins
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, Size)
מגדיר את ערך המאפיין של גודל.
public virtual object SetProperty(string key, Size value)
פרמטרים
key
string
שם המאפיין.
value
Size
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, Size)
מגדיר את ערך המאפיין של גודל בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
Size
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, int)
מגדיר את ערך המאפיין של שלם.
public virtual object SetProperty(string key, int value)
פרמטרים
key
string
שם המאפיין.
value
int
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, int)
מגדיר את ערך המאפיין של שלם בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
int
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, double)
מגדיר את ערך המאפיין של כפול.
public virtual object SetProperty(string key, double value)
פרמטרים
key
string
שם המאפיין.
value
double
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, double)
מגדיר את ערך המאפיין של כפול בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
double
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, float)
מגדיר את ערך המאפיין של צף.
public virtual object SetProperty(string key, float value)
פרמטרים
key
string
שם המאפיין.
value
float
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, float)
מגדיר את ערך המאפיין של צף בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
float
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, bool)
מגדיר את ערך המאפיין הבוליאני.
public virtual object SetProperty(string key, bool value)
פרמטרים
key
string
שם המאפיין.
value
bool
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, bool)
מגדיר את ערך המאפיין הבוליאני בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
bool
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(string, Matrix)
מגדיר את ערך המאפיין של מטריצה.
public virtual object SetProperty(string key, Matrix value)
פרמטרים
key
string
שם המאפיין.
value
Matrix
ערך המאפיין.
מחזיר
מאפיין.
SetProperty(Dictionary<string, object="">, string, Matrix)
מגדיר את ערך המאפיין של מטריצה בטבלת המאפיינים המצוינת.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
פרמטרים
properties
Dictionary<string, object>
טבלת המאפיינים.
key
string
שם המאפיין.
value
Matrix
ערך המאפיין.
מחזיר
מאפיין.