SMART datagrid v.1 > Concepts

Back  Forward

Concepts.Grid Style Overview

SMART datagrid网格视图树视图由包含同类单元格的几种区域所构成。 包含在同一区域的单元格,一般都会被绘制成相同的样式。 GridStyles提供适用于这些区域的样式组,并且一般都会通过这些样式属性而绘制包含在区域的单元格。 

虽然在Grid Styles中已有定义可用于各个区域的共同样式属性,但这并不意味着各个区域的单元格将会使用所有属性。 下列表格中,已有概括Grid Styles的样式属性。 有关各个属性的详细说明,请参考属性帮助。 

Table-1
属性类型说明
backgroundFill单元格背景颜色
colorFill文本颜色
inactiveBackgroundFill已删除的行单元格背景
inactiveColorFill已删除的行文本颜色
selectedBackgroundFill所选单元格背景颜色
selectedColorFill所选单元格文本颜色
hoveredBackgroundFill鼠标悬停的单元格背景
hoveredColorFill鼠标悬停的单元格文本颜色
borderTopStroke单元格上边框
borderLeftStroke单元格左边框
borderBottomStroke单元格下边框
borderRightStroke单元格右边框
borderRadiusInteger边框半径
textFormatString文本显示格式
datetimeFormatString日期显示格式
numberFormatString数字显示格式
booleanFormatString真/假显示格式
paddingLeftInteger单元格左边距
paddingRightInteger单元格右边距
paddingTopInteger单元格上边距
paddingBottomInteger单元格下边距
fontNameString字体名
fontSizeInteger字体大小
fontBoldBoolean粗体
fontItalicBoolean斜体
fontLineThroughBoolean删除线
fontUnderlineBoolean下划线
iconAlignmentAlignment图标排序方式
iconIndexInteger图标索引指定
iconLocationIconLocation图标显示位置
iconOffsetInteger图标与单元格边框的间隔
iconPaddingInteger图标与文本的间隔
iconAlphaInteger图标或图像的透明度(0~1)
prefixString置于文本前的字符串
suffixString置于文本后的字符串
textAlignmentAlignment文本水平对齐状态
lineAlignmentAlignment文本垂直对齐状态
textWrapTextWrapMode脱离单元格范围时的显示方式
textShadowString文本阴影颜色
shapeNameString形状名称
shapeColorFill形状背景颜色
shapeColorsFill形状背景颜色调色板
shapeInactiveColorFill闲置形状背景颜色
shapeSelectedColorFill所选形状背景颜色
shapeHoveredColorFill鼠标悬停的形状背景颜色
shapeBorderStroke形状边框
shapeInactiveBorderFill闲置形状边框
shapeSelectedBorderFill所选形状边框
shapeHoveredBorderFill鼠标悬停的形状边框
shapeLocationIconLocation形状显示位置
shapeAlignmentAlignment形状排序方式
shapeOffsetInteger形状与单元格边框的间隔
shapePaddingInteger形状与文本的间隔
shapeSizeDimension形状大小
shapeRotateNumber形状旋转状态(0~360)
rendererString渲染器ID
Note
See Also
GridStyles
Examples
列样式
列动态样式