new XUIKeyValuePairList()
Methods
-
AddData(strKey, strValue)
-
增加数据
Parameters:
Name Type Description strKey
String key数据 strValue
String value数据 -
Clear()
-
清空数据
-
RemoveItem(nIndex)
-
移除数据
Parameters:
Name Type Description nIndex
Number 索引 -
SetBackgroundColor(strColor)
-
背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description BackgroundColor
Color "0xff10181a" -
SetContinentalWidth(nWidthL, nWidthR)
-
文字容器宽度百分比
Parameters:
Name Type Description nWidthL
Number key宽度 nWidthR
Number value宽度 Properties:
Name Type Description ContinentalWidth
Collection [50,50] -
SetCursor(cursor)
-
鼠标样式
Parameters:
Name Type Description cursor
String 穿透鼠标事件 Properties:
Name Type Description Cursor
Combo ["defult","pointer"] -
SetInnerGap(nInnerGap)
-
内部间隔
Parameters:
Name Type Description nInnerGap
Number 设置内部间隔 Properties:
Name Type Description InnerGap
Number 4 -
SetItemHeight(nHeight)
-
所有行的高度和文字行高
Parameters:
Name Type Description nHeight
Number 行高 Properties:
Name Type Description ItemHeight
Number 42 -
SetItemHeightByIndex(nIndex, nHeight)
-
单行的高度和行高
Parameters:
Name Type Description nIndex
Number 索引 nHeight
Number 行高 -
SetItemKey(nIndex, strKey)
-
key数据
Parameters:
Name Type Description nIndex
Number 索引 strKey
String key数据 -
SetItemKeyValueColor(nIndex, strKeyColor, strValueColor)
-
单行颜色
Parameters:
Name Type Description nIndex
Number 索引 strKeyColor
String key颜色 strValueColor
String value颜色 -
SetItemKeyValueFontSize(nIndex, nKeySize, nValueSize)
-
单行字体大小
Parameters:
Name Type Description nIndex
Number 索引 nKeySize
Number key字体大小 nValueSize
Number value字体大小 -
SetItemValue(nIndex, strValue)
-
value数据
Parameters:
Name Type Description nIndex
Number 索引 strValue
String value数据 -
SetItemValueByKey(strName, strValue)
-
根据Key设置value数据
Parameters:
Name Type Description strName
String Key名 strValue
String value数据 -
SetKeyColor(strColor)
-
key颜色
Parameters:
Name Type Description strColor
String key颜色 Properties:
Name Type Description KeyColor
Color "0xff5d686b" -
SetKeyValueFontSize(nKeySize, nValueSize)
-
字体大小
Parameters:
Name Type Description nKeySize
Number key字体大小 nValueSize
Number value字体大小 Properties:
Name Type Description FontSize
Collection [16, 16] -
SetScrollBarColor(strBgColor, strTrackColor, strThumbColor, strBtnColor)
-
滚动条颜色
Parameters:
Name Type Description strBgColor
String 背景色 strTrackColor
String 轨道颜色 strThumbColor
String 滑块颜色 strBtnColor
String 按钮颜色 Properties:
Name Type Description ScrollBarColor
Collection ["0xfff5f5f5","0xfff5f5f5","0xff555555","0xff555555"] -
SetScrollBarSize(nWidth, nTrackR, nThumbR, nBtnHeight, nBtnR)
-
滚动条外观
Parameters:
Name Type Description nWidth
Number 宽 nTrackR
Number 轨道圆角大小 nThumbR
Number 滑块圆角大小 nBtnHeight
Number 按钮高度 nBtnR
Number 按钮圆角大小 Properties:
Name Type Description ScrollBarSize
Collection [10,10,10,10,10] -
SetShowToolTip(bShow)
-
显示ToolTip
Parameters:
Name Type Description bShow
Boolean true显示false不显示 Properties:
Name Type Description ShowToolTip
Boolean true -
SetTextPosition(strPosK, strPosV)
-
文字位置
Parameters:
Name Type Description strPosK
String key位置 strPosV
String value位置 Properties:
Name Type Description TextPosition
Collection ["right","left"] -
SetToolTipBgColor(strColor)
-
ToolTip背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description ToolTipBgColor
Color "0xff007ACC" -
SetToolTipBorderColor(strColor)
-
ToolTip边框颜色
Parameters:
Name Type Description strColor
String 边框颜色 Properties:
Name Type Description ToolTipBorderColor
Color "0xff0000ff" -
SetToolTipBorderWidth(nWidth)
-
ToolTip边框宽度
Parameters:
Name Type Description nWidth
Number 边框宽度 Properties:
Name Type Description ToolTipBorderWidth
Number 1 -
SetToolTipFontColor(strColor)
-
ToolTip文字颜色
Parameters:
Name Type Description strColor
String 文字颜色 Properties:
Name Type Description ToolTipFontColor
Color "0xff000000" -
SetToolTipFontSize(nSize)
-
ToolTip文字大小
Parameters:
Name Type Description nSize
Number 文字大小 Properties:
Name Type Description ToolTipFontSize
Number "14" -
SetValueColor(strColor)
-
value颜色
Parameters:
Name Type Description strColor
String value颜色 Properties:
Name Type Description ValueColor
Color "0xffd83848" -
ShowScroll(bShow)
-
是否显示滚动条
Parameters:
Name Type Description bShow
Boolean 显示滚动条 Properties:
Name Type Description ShowScroll
Boolean true