火花标签的直线式

时间:2012-02-17 12:43:20

标签: flex styles

如何为s:label设置css text-decoration:line-through的直通式样式。

1 个答案:

答案 0 :(得分:2)

有一种称为lineThrough的样式。它是Boolean,因此只需将其设置为true


文档: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Label.html#style:lineThrough

spark.components.Label.as中的

有一个include "../styles/metadata/BasicInheritingTextStyles.as",该文件包含定义lineThrough的以下snippit

/** 
 *  If true, applies strikethrough, a line drawn through the middle of the text.  
 *  
 *  <p><b>For the Spark theme, see
 *  flashx.textLayout.formats.ITextLayoutFormat.lineThrough</b></p>
 *
 *  <p><b>For the Mobile theme, this is not supported.</b></p>
 * 
 *  @see flashx.textLayout.formats.ITextLayoutFormat#lineThrough
 * 
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 1.5
 *  @productversion Flex 4
 */
[Style(name="lineThrough", type="Boolean", inherit="yes")]