new XUITextVerbatim()
Methods
-
GetBackgroundColor() → {String}
-
获取背景色
Returns:
String -
GetBackgroundImage() → {String}
-
获取背景图片
Returns:
String -
GetDrawColor() → {Boolean}
-
获取是否颜色绘制
Returns:
Boolean -
GetLoadSpeed() → {Number}
-
获取显示速度
Returns:
Number -
GetPicModel() → {String}
-
获取图片绘制模式
Returns:
String -
GetTextColor() → {String}
-
获取文字颜色
Returns:
String -
GetTextContent() → {String}
-
获取文字内容
Returns:
String -
GetTextDivBorderColor() → {String}
-
获取边框颜色
Returns:
String -
GetTextDivBorderStyle() → {String}
-
获取边框类型
Returns:
String -
GetTextDivBorderWidth() → {Number}
-
获取边框宽度
Returns:
Number -
GetTextIndent() → {Boolean}
-
获取是否首行缩进
Returns:
Boolean -
GetTextIndentNumber() → {Number}
-
获取首行缩进字数
Returns:
Number -
GetTextLetterSpacing() → {Number}
-
获取文字字间距
Returns:
Number -
GetTextLineHeight() → {Number}
-
获取文字行间距
Returns:
Number -
GetTextPadding() → {Number}
-
获取边距
Returns:
Number -
GetTextsize() → {Number}
-
获取文字大小
Returns:
Number -
IsDrawColor(bColor)
-
是否颜色绘制
Parameters:
Name Type Description bColor
Boolean 是否颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetBackgroundColor(strColor)
-
设置背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description BgColor
Color "0xffffffff" -
SetBackgroundImage(strImage)
-
设置背景图片
Parameters:
Name Type Description strImage
String 背景图片 Properties:
Name Type Description BackgroundImage
String "" -
SetCursor(strCursor)
-
设置光标
Parameters:
Name Type Description strCursor
String 光标 Properties:
Name Type Description Cursor
String "|" -
SetLoadSpeed(nSpeed)
-
设置显示速度
Parameters:
Name Type Description nSpeed
Number 显示速度 Properties:
Name Type Description LoadSpeed
Number 20 -
SetPicModel(strModel)
-
图片绘制模式
Parameters:
Name Type Description strModel
String 绘制模式 Properties:
Name Type Description PicModel
Combo ["no-repeat","repeat-x","repeat-y","repeat"] -
SetScrollBarColor(bgColor, trackColor, ThumbColor, ButtonColor)
-
滚动条颜色
Parameters:
Name Type Description bgColor
Number 背景色 trackColor
Number 轨道颜色 ThumbColor
Number 滑块颜色 ButtonColor
Number 按钮颜色 Properties:
Name Type Description SetScrollBarColor
Collection ["0x0000ff00","0x0000ff00","0xff1e4952","0x0000ff00"] -
SetScrollBarFacade(nWidth, nTrackR, nThumbR, nButtonH, nButtonR)
-
滚动条样式
Parameters:
Name Type Description nWidth
Number 滚动条宽度 nTrackR
Number 轨道圆角 nThumbR
Number 滑块圆角 nButtonH
Number 按钮高度 nButtonR
Number 按钮圆角 Properties:
Name Type Description ScrollBarFacade
Collection [8,10,10,0,0] -
SetTextColor(strColor)
-
设置文字颜色
Parameters:
Name Type Description strColor
String 文字颜色 Properties:
Name Type Description TextColor
Color "0xff000000" -
SetTextContent(strContent)
-
设置文字内容
Parameters:
Name Type Description strContent
String 文字内容 Properties:
Name Type Description TextContent
String "test" -
SetTextDivBorderColor(strColor)
-
容器边框颜色
Parameters:
Name Type Description strColor
String 容器边框颜色 Properties:
Name Type Description TextDivBorderColor
Color "0xff000000" -
SetTextDivBorderStyle(strStyle)
-
容器边框类型
Parameters:
Name Type Description strStyle
String 容器边框类型 Properties:
Name Type Description TextDivBorderStyle
Combo ["solid","dashed"] -
SetTextDivBorderWidth(nWidth)
-
容器边框宽度
Parameters:
Name Type Description nWidth
Number 容器边框宽度 Properties:
Name Type Description TextDivBorderWidth
Number 1 -
SetTextIndent(bIndent)
-
是否首行缩进
Parameters:
Name Type Description bIndent
Boolean 是否首行缩进 Properties:
Name Type Description TextIndent
Boolean false -
SetTextIndentNumber(nTextIndentNumber)
-
首行缩进字数
Parameters:
Name Type Description nTextIndentNumber
Number 首行缩进字数 Properties:
Name Type Description TextIndentNumber
Number 2 -
SetTextLetterSpacing(nLetterSpacing)
-
设置文字字间距
Parameters:
Name Type Description nLetterSpacing
Number 文字字间距 Properties:
Name Type Description TextLetterSpacing
Number 4 -
SetTextLineHeight(nLineHeight)
-
设置文字行间距
Parameters:
Name Type Description nLineHeight
Number 文字行间距 Properties:
Name Type Description TextLineHeight
Number 25 -
SetTextPadding(nPadding)
-
设置边距
Parameters:
Name Type Description nPadding
Number 边距 Properties:
Name Type Description TextPadding
Number 10 -
SetTextsize(nSize)
-
设置文字大小
Parameters:
Name Type Description nSize
Number 文字大小 Properties:
Name Type Description Textsize
Number 16