Class UserProperties
名称: Aspose.Page 集合: Aspose.Page.dll (25.4.0)
特殊属性类,允许标记属性设置和返回. 它还允许两个默认财产物品的收藏要被搜索,如果本物品不包含本物品。
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
继承人
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()
启动用户属性类的一个空白例子。
public UserProperties()
UserProperties(字典<string,object="">)
启动一个用户属性类与默认值。
public UserProperties(Dictionary<string, object=""> defaults)
Parameters
defaults
Dictionary
<
string
, object
>
假设属性值。
UserProperties(字典<string,object=“">, 词典<string, 对象="">)
创建用户属性与默认和 altDefaults 表,他们在这个顺序中被寻找。
public UserProperties(Dictionary<string, object=""> defaults, Dictionary<string, object=""> altDefaults)
Parameters
defaults
Dictionary
<
string
, object
>
假设属性值。
altDefaults
Dictionary
<
string
, object
>
替代品的价值。
Fields
阿尔及利亚
替代品的价值。
protected Dictionary<string, object=""> altDefaults
领域价值
Dictionary < string , object >
Properties
Properties
复制属性,包括其故障在此用户属性
public virtual Dictionary<string, object=""> Properties { set; }
财产价值
Dictionary < string , object >
Methods
GetProperty(线条)
收获硬件财产价值。
public virtual string GetProperty(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetProperty(字符串, string)
如果所要求的财产不存在,则返回所提供的默认值。
public virtual string GetProperty(string key, string defValue)
Parameters
key
string
财产名称。
defValue
string
财产的虚假价值。
Returns
财产价值。
GetPropertyColor(线条)
获得颜色财产价值。
public virtual Color GetPropertyColor(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyColor(字符,颜色)
收到彩色属性值 如果所要求的属性不存在,则返回所提供的默认值。
public virtual Color GetPropertyColor(string key, Color defValue)
Parameters
key
string
财产名称。
defValue
Color
财产的虚假价值。
Returns
财产价值。
GetPropertyDouble(线条)
获得双重财产价值。
public virtual double GetPropertyDouble(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyDouble(双重,双重)
收到双重财产值 如果所要求的财产不存在,则返回所提供的默认值。
public virtual double GetPropertyDouble(string key, double defValue)
Parameters
key
string
财产名称。
defValue
double
财产的虚假价值。
Returns
财产价值。
GetPropertyFloat(线条)
获得浮动财产价值。
public virtual float GetPropertyFloat(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyFloat(字符, float)
收到浮动财产值 如果所要求的财产不存在,则返回所提供的默认值。
public virtual float GetPropertyFloat(string key, float defValue)
Parameters
key
string
财产名称。
defValue
float
财产的虚假价值。
Returns
财产价值。
GetPropertyInt(线条)
获得全部财产价值。
public virtual int GetPropertyInt(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyInt(, int)
如果所需的财产不存在,则返回所提供的默认值。
public virtual int GetPropertyInt(string key, int defValue)
Parameters
key
string
财产名称。
defValue
int
财产的虚假价值。
Returns
财产价值。
GetPropertyMargins(线条)
获得资产价值的边缘。
public virtual Margins GetPropertyMargins(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyMargins(马丁,马丁)
如果所需的财产不存在,则返回所提供的默认值。
public virtual Margins GetPropertyMargins(string key, Margins defValue)
Parameters
key
string
财产名称。
defValue
Margins
财产的虚假价值。
Returns
财产价值。
GetPropertyMatrix(线条)
获得矩阵财产价值。
public virtual Matrix GetPropertyMatrix(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyMatrix(马特里克,马特里克)
收到矩阵属性值 如果所要求的属性不存在,则返回所提供的默认值。
public virtual Matrix GetPropertyMatrix(string key, Matrix defValue)
Parameters
key
string
财产名称。
defValue
Matrix
财产的虚假价值。
Returns
财产价值。
GetPropertyRectangle(线条)
获得直角财产价值。
public virtual RectangleF GetPropertyRectangle(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertyRectangle(字符串,RectangleF)
收到直角属性值 如果所要求的属性不存在,则返回所提供的默认值。
public virtual RectangleF GetPropertyRectangle(string key, RectangleF defValue)
Parameters
key
string
财产名称。
defValue
RectangleF
财产的虚假价值。
Returns
财产价值。
GetPropertySize(线条)
获得财产价值。
public virtual Size GetPropertySize(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
GetPropertySize(字体,大小)
如果所需的财产不存在,则返回所提供的默认值。
public virtual Size GetPropertySize(string key, Size defValue)
Parameters
key
string
财产名称。
defValue
Size
财产的虚假价值。
Returns
财产价值。
GetPropertyStringArray(线条)
接收字符串的财产价值。
public virtual string[] GetPropertyStringArray(string key)
Parameters
key
string
财产名称。
Returns
string ( )
财产价值。
GetPropertyStringArray(字符串, string[])
如果所要求的财产不存在,则返回所提供的默认值。
public virtual string[] GetPropertyStringArray(string key, string[] defValue)
Parameters
key
string
财产名称。
defValue
string
( )
财产的虚假价值。
Returns
string ( )
财产价值。
IsProperty(线条)
获得布莱恩财产价值。
public virtual bool IsProperty(string key)
Parameters
key
string
财产名称。
Returns
财产价值。
IsProperty(布尔,布尔)
如果所要求的财产不存在,则返回所提供的默认值。
public virtual bool IsProperty(string key, bool defValue)
Parameters
key
string
财产名称。
defValue
bool
财产的虚假价值。
Returns
财产价值。
PrintProperties()
public virtual void PrintProperties()
PropertyNames()
返回财产名称
public virtual IEnumerator<string> PropertyNames()
Returns
IEnumerator < string >
属性名称的列表。
SetProperty(字符串, string)
重定义财产价值。
public virtual object SetProperty(string key, string value)
Parameters
key
string
财产名称。
value
string
财产的价值。
Returns
一个财产。
SetProperty(字符串, string[])
设置 string array 属性值。
public virtual object SetProperty(string key, string[] value)
Parameters
key
string
财产名称。
value
string
( )
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=“””, string, string[])
在指定的属性表中设置序列属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, string[] value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
string
( )
财产的价值。
Returns
一个财产。
SetProperty(字符,颜色)
彩色财产价值。
public virtual object SetProperty(string key, Color value)
Parameters
key
string
财产名称。
value
Color
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=“">, string, 颜色)
在指定的属性表中设置颜色属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, Color value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
Color
财产的价值。
Returns
一个财产。
SetProperty(直角,直角)
设定直角财产价值。
public virtual object SetProperty(string key, Rectangle value)
Parameters
key
string
财产名称。
value
Rectangle
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=“">, string, 直角)
在指定的属性表中设置直角属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, Rectangle value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
Rectangle
财产的价值。
Returns
一个财产。
SetProperty(马丁,马丁)
设定资产价值的边缘。
public virtual object SetProperty(string key, Margins value)
Parameters
key
string
财产名称。
value
Margins
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=””””””””””””””””)
在指定的属性表中设置资产价值的边缘。
public static object SetProperty(Dictionary<string, object=""> properties, string key, Margins value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
Margins
财产的价值。
Returns
一个财产。
SetProperty(字体,大小)
设定财产价值。
public virtual object SetProperty(string key, Size value)
Parameters
key
string
财产名称。
value
Size
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=””””””””””””””)
在指定的属性表中设置属性大小值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, Size value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
Size
财产的价值。
Returns
一个财产。
SetProperty(, int)
设定整体财产价值。
public virtual object SetProperty(string key, int value)
Parameters
key
string
财产名称。
value
int
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=“””, string, int)
在指定的属性表中设置整体属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, int value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
int
财产的价值。
Returns
一个财产。
SetProperty(双重,双重)
二重财产价值。
public virtual object SetProperty(string key, double value)
Parameters
key
string
财产名称。
value
double
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=”””””””””””””””””””)
在指定的属性表中设置双重属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, double value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
double
财产的价值。
Returns
一个财产。
SetProperty(字符, float)
固定浮动财产价值。
public virtual object SetProperty(string key, float value)
Parameters
key
string
财产名称。
value
float
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=””””””””””””””””)
在指定的属性表中设置浮动属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, float value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
float
财产的价值。
Returns
一个财产。
SetProperty(布尔,布尔)
布莱恩的财产价值。
public virtual object SetProperty(string key, bool value)
Parameters
key
string
财产名称。
value
bool
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=”””””””””””””)
在指定的属性表中设置布莱恩属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, bool value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
bool
财产的价值。
Returns
一个财产。
SetProperty(马特里克,马特里克)
设定矩阵财产价值。
public virtual object SetProperty(string key, Matrix value)
Parameters
key
string
财产名称。
value
Matrix
财产的价值。
Returns
一个财产。
SetProperty(字典<string,object=”””””””””””””””””””)
在指定的属性表中设置矩阵属性值。
public static object SetProperty(Dictionary<string, object=""> properties, string key, Matrix value)
Parameters
properties
Dictionary
<
string
, object
>
属性表。
key
string
财产名称。
value
Matrix
财产的价值。
Returns
一个财产。</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,>