Class UserProperties

Class UserProperties

Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)

Lớp thuộc tính đặc biệt cho phép thiết lập và trả về các thuộc tính kiểu. Nó cũng cho phép kết nối hai đối tượng thuộc tính mặc định để tìm kiếm nếu đối tượng thuộc tính này không chứa thuộc tính.

public class UserProperties : Dictionary<string, object="">, IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable, ISerializable, IDeserializationCallback

Kế thừa

objectDictionary<string, object="">UserProperties

Thực hiện

IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IDictionary, ICollection, IReadOnlyDictionary<string, object="">, IReadOnlyCollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable, ISerializable, IDeserializationCallback

Các thành viên kế thừa

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()

Các hàm khởi tạo

UserProperties()

Khởi tạo một thể hiện rỗng của lớp UserProperties.

public UserProperties()

UserProperties(Dictionary<string, object="">)

Khởi tạo một thể hiện của lớp UserProperties với các giá trị mặc định.

public UserProperties(Dictionary<string, object=""> defaults)

Tham số

defaults Dictionary<string, object&gt;

Giá trị thuộc tính mặc định.

UserProperties(Dictionary<string, object="">, Dictionary<string, object="">)

Tạo UserProperties với bảng defaults và altDefaults, được tìm kiếm theo thứ tự đó.

public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)

Tham số

defaults Dictionary<string, object&gt;

Giá trị thuộc tính mặc định.

altDefaults Dictionary<string, object&gt;

Giá trị thuộc tính thay thế.

Các trường

altDefaults

Giá trị thuộc tính thay thế.

protected Dictionary<string, object=""> altDefaults

Giá trị trường

Dictionary<string, object&gt;

Các thuộc tính

Properties

Sao chép các thuộc tính, bao gồm cả các giá trị mặc định vào UserProperties này.

public virtual Dictionary<string, object=""> Properties { set; }

Giá trị thuộc tính

Dictionary<string, object&gt;

Các phương thức

GetProperty(string)

Lấy giá trị thuộc tính chuỗi.

public virtual string GetProperty(string key)

Tham số

key string

Tên thuộc tính.

Trả về

string

Giá trị thuộc tính.

GetProperty(string, string)

Lấy giá trị thuộc tính chuỗi. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual string GetProperty(string key, string defValue)

Tham số

key string

Tên thuộc tính.

defValue string

Giá trị mặc định của thuộc tính.

Trả về

string

Giá trị thuộc tính.

GetPropertyColor(string)

Lấy giá trị thuộc tính màu.

public virtual Color GetPropertyColor(string key)

Tham số

key string

Tên thuộc tính.

Trả về

Color

Giá trị thuộc tính.

GetPropertyColor(string, Color)

Lấy giá trị thuộc tính màu. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual Color GetPropertyColor(string key, Color defValue)

Tham số

key string

Tên thuộc tính.

defValue Color

Giá trị mặc định của thuộc tính.

Trả về

Color

Giá trị thuộc tính.

GetPropertyDouble(string)

Lấy giá trị thuộc tính số thực.

public virtual double GetPropertyDouble(string key)

Tham số

key string

Tên thuộc tính.

Trả về

double

Giá trị thuộc tính.

GetPropertyDouble(string, double)

Lấy giá trị thuộc tính số thực. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual double GetPropertyDouble(string key, double defValue)

Tham số

key string

Tên thuộc tính.

defValue double

Giá trị mặc định của thuộc tính.

Trả về

double

Giá trị thuộc tính.

GetPropertyFloat(string)

Lấy giá trị thuộc tính số thực đơn.

public virtual float GetPropertyFloat(string key)

Tham số

key string

Tên thuộc tính.

Trả về

float

Giá trị thuộc tính.

GetPropertyFloat(string, float)

Lấy giá trị thuộc tính số thực đơn. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual float GetPropertyFloat(string key, float defValue)

Tham số

key string

Tên thuộc tính.

defValue float

Giá trị mặc định của thuộc tính.

Trả về

float

Giá trị thuộc tính.

GetPropertyInt(string)

Lấy giá trị thuộc tính số nguyên.

public virtual int GetPropertyInt(string key)

Tham số

key string

Tên thuộc tính.

Trả về

int

Giá trị thuộc tính.

GetPropertyInt(string, int)

Lấy giá trị thuộc tính số nguyên. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual int GetPropertyInt(string key, int defValue)

Tham số

key string

Tên thuộc tính.

defValue int

Giá trị mặc định của thuộc tính.

Trả về

int

Giá trị thuộc tính.

GetPropertyMargins(string)

Lấy giá trị thuộc tính lề.

public virtual Margins GetPropertyMargins(string key)

Tham số

key string

Tên thuộc tính.

Trả về

Margins

Giá trị thuộc tính.

GetPropertyMargins(string, Margins)

Lấy giá trị thuộc tính lề. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual Margins GetPropertyMargins(string key, Margins defValue)

Tham số

key string

Tên thuộc tính.

defValue Margins

Giá trị mặc định của thuộc tính.

Trả về

Margins

Giá trị thuộc tính.

GetPropertyMatrix(string)

Lấy giá trị thuộc tính ma trận.

public virtual Matrix GetPropertyMatrix(string key)

Tham số

key string

Tên thuộc tính.

Trả về

Matrix

Giá trị thuộc tính.

GetPropertyMatrix(string, Matrix)

Lấy giá trị thuộc tính ma trận. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)

Tham số

key string

Tên thuộc tính.

defValue Matrix

Giá trị mặc định của thuộc tính.

Trả về

Matrix

Giá trị thuộc tính.

GetPropertyRectangle(string)

Lấy giá trị thuộc tính hình chữ nhật.

public virtual RectangleF GetPropertyRectangle(string key)

Tham số

key string

Tên thuộc tính.

Trả về

RectangleF

Giá trị thuộc tính.

GetPropertyRectangle(string, RectangleF)

Lấy giá trị thuộc tính hình chữ nhật. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)

Tham số

key string

Tên thuộc tính.

defValue RectangleF

Giá trị mặc định của thuộc tính.

Trả về

RectangleF

Giá trị thuộc tính.

GetPropertySize(string)

Lấy giá trị thuộc tính kích thước.

public virtual Size GetPropertySize(string key)

Tham số

key string

Tên thuộc tính.

Trả về

Size

Giá trị thuộc tính.

GetPropertySize(string, Size)

Lấy giá trị thuộc tính kích thước. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual Size GetPropertySize(string key, Size defValue)

Tham số

key string

Tên thuộc tính.

defValue Size

Giá trị mặc định của thuộc tính.

Trả về

Size

Giá trị thuộc tính.

GetPropertyStringArray(string)

Lấy giá trị thuộc tính mảng chuỗi.

public virtual string[] GetPropertyStringArray(string key)

Tham số

key string

Tên thuộc tính.

Trả về

string[]

Giá trị thuộc tính.

GetPropertyStringArray(string, string[])

Lấy giá trị thuộc tính mảng chuỗi. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual string[] GetPropertyStringArray(string key, string[] defValue)

Tham số

key string

Tên thuộc tính.

defValue string[]

Giá trị mặc định của thuộc tính.

Trả về

string[]

Giá trị thuộc tính.

IsProperty(string)

Lấy giá trị thuộc tính boolean.

public virtual bool IsProperty(string key)

Tham số

key string

Tên thuộc tính.

Trả về

bool

Giá trị thuộc tính.

IsProperty(string, bool)

Lấy giá trị thuộc tính boolean. Nếu thuộc tính yêu cầu không có, trả về giá trị mặc định đã cung cấp.

public virtual bool IsProperty(string key, bool defValue)

Tham số

key string

Tên thuộc tính.

defValue bool

Giá trị mặc định của thuộc tính.

Trả về

bool

Giá trị thuộc tính.

PrintProperties()

public virtual void PrintProperties()

PropertyNames()

Trả về tên thuộc tính.

public virtual IEnumerator<string> PropertyNames()

Trả về

IEnumerator<string&gt;

Bộ lặp của tên thuộc tính.

SetProperty(string, string)

Thiết lập giá trị thuộc tính chuỗi.

public virtual object SetProperty(string key, string value)

Tham số

key string

Tên thuộc tính.

value string

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, string[])

Thiết lập giá trị thuộc tính mảng chuỗi.

public virtual object SetProperty(string key, string[] value)

Tham số

key string

Tên thuộc tính.

value string[]

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, string[])

Thiết lập giá trị thuộc tính mảng chuỗi trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value string[]

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, Color)

Thiết lập giá trị thuộc tính màu.

public virtual object SetProperty(string key, Color value)

Tham số

key string

Tên thuộc tính.

value Color

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, Color)

Thiết lập giá trị thuộc tính màu trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value Color

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, Rectangle)

Thiết lập giá trị thuộc tính hình chữ nhật.

public virtual object SetProperty(string key, Rectangle value)

Tham số

key string

Tên thuộc tính.

value Rectangle

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, Rectangle)

Thiết lập giá trị thuộc tính hình chữ nhật trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value Rectangle

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, Margins)

Thiết lập giá trị thuộc tính lề.

public virtual object SetProperty(string key, Margins value)

Tham số

key string

Tên thuộc tính.

value Margins

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, Margins)

Thiết lập giá trị thuộc tính lề trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value Margins

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, Size)

Thiết lập giá trị thuộc tính kích thước.

public virtual object SetProperty(string key, Size value)

Tham số

key string

Tên thuộc tính.

value Size

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, Size)

Thiết lập giá trị thuộc tính kích thước trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value Size

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, int)

Thiết lập giá trị thuộc tính số nguyên.

public virtual object SetProperty(string key, int value)

Tham số

key string

Tên thuộc tính.

value int

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, int)

Thiết lập giá trị thuộc tính số nguyên trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value int

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, double)

Thiết lập giá trị thuộc tính số thực.

public virtual object SetProperty(string key, double value)

Tham số

key string

Tên thuộc tính.

value double

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, double)

Thiết lập giá trị thuộc tính số thực trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value double

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, float)

Thiết lập giá trị thuộc tính số thực đơn.

public virtual object SetProperty(string key, float value)

Tham số

key string

Tên thuộc tính.

value float

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, float)

Thiết lập giá trị thuộc tính số thực đơn trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value float

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, bool)

Thiết lập giá trị thuộc tính boolean.

public virtual object SetProperty(string key, bool value)

Tham số

key string

Tên thuộc tính.

value bool

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, bool)

Thiết lập giá trị thuộc tính boolean trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value bool

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(string, Matrix)

Thiết lập giá trị thuộc tính ma trận.

public virtual object SetProperty(string key, Matrix value)

Tham số

key string

Tên thuộc tính.

value Matrix

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

SetProperty(Dictionary<string, object="">, string, Matrix)

Thiết lập giá trị thuộc tính ma trận trong bảng thuộc tính đã chỉ định.

public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)

Tham số

properties Dictionary<string, object&gt;

Bảng thuộc tính.

key string

Tên thuộc tính.

value Matrix

Giá trị thuộc tính.

Trả về

object

Một thuộc tính.

 Tiếng Việt