XUIKeyValuePair()

Methods

Clear()

清空数据

SetBackgroundColor(strColor)

背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
BackgroundColor Color "0xff10181a"

SetColor(strColor)

设置Key和value的颜色
Parameters:
Name Type Description
strColor String

SetFontFamily(strFont)

文字字体
Parameters:
Name Type Description
strFont String 字体

SetFontSize(nSize)

统一设置字体大小
Parameters:
Name Type Description
nSize Number key字体大小

SetHorAlignType(strAlign)

水平方向对齐方式
Parameters:
Name Type Description
strAlign String
Properties:
Name Type Description
HorAlignType Combo ["center","left","right"]

SetInnerGap(nGap)

设置Key和Value的间距
Parameters:
Name Type Description
nGap Number
Properties:
Name Type Description
InnerGap Number 5

SetKey(strKey)

key数据
Parameters:
Name Type Description
strKey String key数据
Properties:
Name Type Description
KeyData String "Key"

SetKeyColor(strColor)

key颜色
Parameters:
Name Type Description
strColor String key颜色
Properties:
Name Type Description
KeyColor Color "0xffffffff"

SetKeyValueFontSize(nKeySize, nValueSize)

分别设置Key和Value字体大小
Parameters:
Name Type Description
nKeySize Number key字体大小
nValueSize Number value字体大小
Properties:
Name Type Description
FontSize Collection [16, 16]

SetValue(strValue)

value数据
Parameters:
Name Type Description
strValue String value数据
Properties:
Name Type Description
ValueData String "Value"

SetValueColor(strColor)

value颜色
Parameters:
Name Type Description
strColor String value颜色
Properties:
Name Type Description
ValueColor Color "0xffffffff"

SetVerAlignType(strAlign)

垂直方向对齐方式
Parameters:
Name Type Description
strAlign String
Properties:
Name Type Description
VerAlignType Combo ["middle","top","bottom"]