Class UserProperties
Tên không gian: Aspose.Page Tổng hợp: Aspose.Page.dll (25.4.0)
Khóa tài sản đặc biệt cho phép các tài sản được mô tả được đặt vàNó cũng cho phép hookup của hai đối tượng tài sản mặc địnhđể được tìm kiếm nếu tài sản này không chứa tài sản.
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
Thành viên thừa kế
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()
Bắt đầu một trường hợp trống của lớp UserProperties.
public UserProperties()
UserProperties(Từ điển <string, object=» » »)
Bắt đầu một trong các lớp UserProperties với giá trị mặc định.
public UserProperties(Dictionary<string, object=""> defaults)
Parameters
defaults
Dictionary
<
string
, object
>
Giá trị thuộc tính mặc định.
UserProperties(Từ điển <string, object="">, Từ điển<string, đối tượng=» » »)
Xây dựng UserProperties với một bảng defaults và altDefaults,Những người đang được tìm kiếm theo thứ tự đó.
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
Parameters
defaults
Dictionary
<
string
, object
>
Giá trị thuộc tính mặc định.
altDefaults
Dictionary
<
string
, object
>
Một giá trị thuộc tính thay thế.
Fields
AltDefault Đánh giá
Một giá trị thuộc tính thay thế.
protected Dictionary<string, object=""> altDefaults
Giá trị Field
Dictionary < string , object >
Properties
Properties
Bản sao thuộc tính, bao gồm các giả định của nó vào UserProperties này
public virtual Dictionary<string, object=""> Properties { set; }
Giá trị bất động sản
Dictionary < string , object >
Methods
GetProperty(String)
Nhận giá trị tài sản string.
public virtual string GetProperty(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetProperty(Thẻ, string)
Nhận giá trị tài sản dòng. Nếu tài sản được yêu cầu không có, giá trị mặc định được cung cấp sẽ trở lại.
public virtual string GetProperty(string key, string defValue)
Parameters
key
string
Tên của tài sản.
defValue
string
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyColor(String)
Nhận giá trị tài sản màu sắc.
public virtual Color GetPropertyColor(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyColor(string, màu sắc)
Nhận giá trị tài sản màu.Nếu tài sản được yêu cầu không có, giá trị mặc định được cung cấp sẽ trở lại.
public virtual Color GetPropertyColor(string key, Color defValue)
Parameters
key
string
Tên của tài sản.
defValue
Color
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyDouble(String)
Có giá trị tài sản gấp đôi.
public virtual double GetPropertyDouble(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyDouble(Thẻ, Double)
Nhận giá trị tài sản gấp đôi.Nếu tài sản được yêu cầu không có, nó trả lại giá trị mặc định được cung cấp.
public virtual double GetPropertyDouble(string key, double defValue)
Parameters
key
string
Tên của tài sản.
defValue
double
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyFloat(String)
Nhận giá trị tài sản float.
public virtual float GetPropertyFloat(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyFloat(Thuyết Minh, Float)
Nhận giá trị tài sản float.Nếu tài sản được yêu cầu không có, trả lại giá trị mặc định được cung cấp.
public virtual float GetPropertyFloat(string key, float defValue)
Parameters
key
string
Tên của tài sản.
defValue
float
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyInt(String)
Nhận được giá trị tài sản toàn diện.
public virtual int GetPropertyInt(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyInt(Nhóm, int)
Nhận giá trị tài sản toàn bộ.Nếu tài sản được yêu cầu không có, giá trị mặc định được cung cấp sẽ trở lại.
public virtual int GetPropertyInt(string key, int defValue)
Parameters
key
string
Tên của tài sản.
defValue
int
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyMargins(String)
Nhận được giá trị tài sản của margins.
public virtual Margins GetPropertyMargins(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyMargins(Thẻ, Margins)
Nhận giá trị tài sản margin.Nếu tài sản được yêu cầu không có, trả lại giá trị mặc định được cung cấp.
public virtual Margins GetPropertyMargins(string key, Margins defValue)
Parameters
key
string
Tên của tài sản.
defValue
Margins
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyMatrix(String)
Nhận giá trị tài sản Matrix.
public virtual Matrix GetPropertyMatrix(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyMatrix(Màn hình, Matrix)
Nhận giá trị tài sản matrix.Nếu tài sản được yêu cầu không có, nó trả lại giá trị mặc định được cung cấp.
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
Parameters
key
string
Tên của tài sản.
defValue
Matrix
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyRectangle(String)
Nhận giá trị tài sản trực tiếp.
public virtual RectangleF GetPropertyRectangle(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertyRectangle(Nhãn hiệu: RectangleF)
Nhận giá trị tài sản trực tiếp.Nếu tài sản được yêu cầu không có, nó trả lại giá trị mặc định được cung cấp.
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
Parameters
key
string
Tên của tài sản.
defValue
RectangleF
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertySize(String)
Nhận được giá trị tài sản.
public virtual Size GetPropertySize(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
GetPropertySize(string, kích thước)
Nhận kích thước giá trị tài sản.Nếu tài sản được yêu cầu không có, trả lại giá trị mặc định được cung cấp.
public virtual Size GetPropertySize(string key, Size defValue)
Parameters
key
string
Tên của tài sản.
defValue
Size
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
GetPropertyStringArray(String)
Gets string array giá trị tài sản.
public virtual string[] GetPropertyStringArray(string key)
Parameters
key
string
Tên của tài sản.
Returns
string [ ]
Giá trị tài sản
GetPropertyStringArray(Thẻ, string[])
Nhận giá trị tài sản.Nếu tài sản được yêu cầu không có, giá trị mặc định được cung cấp sẽ trở lại.
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
Parameters
key
string
Tên của tài sản.
defValue
string
[ ]
Giá trị giả định của tài sản.
Returns
string [ ]
Giá trị tài sản
IsProperty(String)
Nhận giá trị tài sản boolean.
public virtual bool IsProperty(string key)
Parameters
key
string
Tên của tài sản.
Returns
Giá trị tài sản
IsProperty(Lời bài hát: Bool)
Nhận giá trị tài sản boolean.Nếu tài sản được yêu cầu không có, trả lại giá trị mặc định được cung cấp.
public virtual bool IsProperty(string key, bool defValue)
Parameters
key
string
Tên của tài sản.
defValue
bool
Giá trị giả định của tài sản.
Returns
Giá trị tài sản
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
Quay lại tên tài sản
public virtual IEnumerator<string> PropertyNames()
Returns
IEnumerator < string >
Danh sách tên tài sản.
SetProperty(Thẻ, string)
Thiết lập giá trị tài sản string.
public virtual object SetProperty(string key, string value)
Parameters
key
string
Tên của tài sản.
value
string
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Thẻ, string[])
Thiết lập string array giá trị tài sản.
public virtual object SetProperty(string key, string[] value)
Parameters
key
string
Tên của tài sản.
value
string
[ ]
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“>, string, string[])
Thiết lập giá trị thuộc tính dòng trong bảng thuộc tính cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
string
[ ]
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(string, màu sắc)
Đặt giá trị tài sản màu.
public virtual object SetProperty(string key, Color value)
Parameters
key
string
Tên của tài sản.
value
Color
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“">, string, Màu sắc)
Đặt giá trị thuộc tính màu trong bảng thuộc tính cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
Color
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Mũi tên, Rectangle)
Đặt giá trị tài sản trực tiếp.
public virtual object SetProperty(string key, Rectangle value)
Parameters
key
string
Tên của tài sản.
value
Rectangle
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“">, string, rectangle)
Thiết lập giá trị tài sản thẳng góc trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
Rectangle
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Thẻ, Margins)
Đặt giá trị tài sản margins.
public virtual object SetProperty(string key, Margins value)
Parameters
key
string
Tên của tài sản.
value
Margins
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“>, string, margins)
Thiết lập giá trị tài sản ranh giới trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
Margins
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(string, kích thước)
Đánh giá giá trị tài sản
public virtual object SetProperty(string key, Size value)
Parameters
key
string
Tên của tài sản.
value
Size
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“">, string, kích thước)
Đặt kích thước giá trị tài sản trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
Size
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Nhóm, int)
Thiết lập giá trị tài sản toàn diện.
public virtual object SetProperty(string key, int value)
Parameters
key
string
Tên của tài sản.
value
int
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“>, string, int)
Đặt giá trị tài sản toàn bộ trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
int
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Thẻ, Double)
Đặt giá trị tài sản gấp đôi
public virtual object SetProperty(string key, double value)
Parameters
key
string
Tên của tài sản.
value
double
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“>, string, đôi)
Đặt giá trị tài sản kép trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
double
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Thuyết Minh, Float)
Thiết lập giá trị tài sản float.
public virtual object SetProperty(string key, float value)
Parameters
key
string
Tên của tài sản.
value
float
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“">, string, float)
Đặt giá trị tài sản float trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
float
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Lời bài hát: Bool)
Đặt giá trị tài sản boolean.
public virtual object SetProperty(string key, bool value)
Parameters
key
string
Tên của tài sản.
value
bool
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“>, string, bool)
Đặt giá trị tài sản boolean trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
bool
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Màn hình, Matrix)
Thiết lập giá trị tài sản Matrix.
public virtual object SetProperty(string key, Matrix value)
Parameters
key
string
Tên của tài sản.
value
Matrix
Giá trị của tài sản.
Returns
một tài sản.
SetProperty(Từ điển <string, object=“">, string, Matrix)
Thiết lập giá trị tài sản matrix trong bảng tài sản cụ thể.
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
Parameters
properties
Dictionary
<
string
, object
>
Bảng tài sản
key
string
Tên của tài sản.
value
Matrix
Giá trị của tài sản.
Returns
một tài sản.</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,>