|
244.
|
|
|
The style that will be updated. This may be a style object or a string giving the style name.
|
|
|
|
将被更新的样式。此可以为一个样式对象或指定样式名称的字串。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:31
|
|
245.
|
|
|
`property`
|
|
|
|
`property`
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:34
|
|
246.
|
|
|
A string giving the name of the style property that will be update.
|
|
|
|
一个将被更新的样式属性名称的字串。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:34
|
|
247.
|
|
|
`value`
|
|
|
|
`value`
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:36
|
|
248.
|
|
|
The value that will be assigned to the style property.
|
|
|
|
将被关联到样式属性的值。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:37
|
|
249.
|
|
|
Sets the selected alternative for the style preference.
|
|
|
|
针对样式偏好设定,设置选中的代替样式。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/inc/style_preferences:41
|
|
250.
|
|
|
Here's an example of registering a style property that allows the user to choose between large, simple text and smaller outlined text.
|
|
|
|
以下为注册一个样式偏好设定的范例,此允许用户在大的常规文字和小的描边文字之间选择。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/style.rst:254
|
|
251.
|
|
|
The following code will allow the user to select these alternatives using buttons::
|
|
|
|
下列代码将允许用户通过按钮在上述代替样式之间选择:
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/style.rst:266
|
|
252.
|
|
|
Other Style Functions
|
|
|
|
其他样式函数
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/style.rst:273
|
|
253.
|
|
|
This causes named styles to be rebuilt, allowing styles to be changed outside of init code.
|
|
|
|
此函数将重建已命名的样式,使得样式能够在init代码外被修改。
|
|
Translated and reviewed by
Huang Junjie
|
|
|
|
Located in
../../source/style.rst:277
|