ExcelStyler
使用指定给Excel编写器的输出功能的属性设置Excel行和单元格样式。By default, all style values are empty and imply that no additional styling will be added. This allows any styling that may have existed from the Excel reader or user created attributes to persist. All style options on the ExcelStyler are optional.
参数
将样式应用于
Choose whether the styler should apply the style specified on the entire row, or just specific cells as chosen in the单元格到样式参数。请注意,单元格样式将覆盖行样式,而行样式又将覆盖列样式。
Specifies the height of the row. Note that this can only be set when applying formatting to an entire row. This must be a decimal number between 0.00 and 409.50.
Specifies which cells will be styled. This option allows selection of attributes, which correspond to columns in Excel, to style for each incoming feature, which each correspond to a row in Excel. The result is that the intersection of the columns and the rows are the cells that will be styled. Note that this can only be set when applying formatting to cells.
Number Format
Defines a custom number format string for the cell. This value will override any format string in the cell for an existing sheet or template sheet.
这个custom format string can be created usingMicrosoft创建自定义数字格式的规则.
Custom number string examples:
To display: |
作为: |
use the code: |
---|---|---|
1234.59 | 1234.6 | ###.# |
12 1234.568 | 12.0 1234.57 | #.0# |
January 2, 2015 | 2015/01/02 | yyyy/mm/dd |
1000 -1000 | $1,000($1,000) | $#,##0#[红色]($#,##0) |
这个Custom字段还支持在Excel中使用的一组常用标准格式。
请注意,这些公共值可能显示为前缀[$-409]and/or a suffix resembling;@. 这些添加项的存在是为了确保这些数字格式在写入Excel后被正确识别为标准格式,而不是自定义格式字符串。
字体
“字体”对话框允许指定字体系列、样式、大小以及对字体的删除线或下划线效果。此信息被编码为字体字符串。更改任何字体设置都会将整个设置应用于单元格。
例如,如果工作表中的现有字体为Arial下划线,并且该选项设置为Arial粗体,则单元格的格式将为Arial粗体,下划线属性将丢失。
这个color of the text for the column. Colors are specified in normalized RGB triples.
Fill
Specifies the background color of the图案样式selected.
要设置单元格的背景色,请设置背景色以及图案样式到固体.Colors are specified in normalized RGB triples.
Specifies the foreground color of the pattern. Colors are specified in normalized RGB triples.
使用来自的颜色指定用于填充单元格的图案图案颜色and背景色.
单元格边框
Specifies the color of the border. Colors are specified in normalized RGB triples.
使用来自的颜色指定用于边框的图案Border Color.
Text Alignment
Specifies the horizontal alignment of text within the cell. Options are左,居中,或Right.If no value is set, Microsoft Excel’s default behavior is to left-align text and right-align numbers.
指定单元格中文本的垂直对齐方式。选项是Top,居中,或底部.If no value is set, Microsoft Excel’s behavior is to align text to the bottom of the cell.
Values represents spaces in Microsoft Excel. This value works in conjunction with水平对齐,and specifies the level of indentation from the alignment boundary. Valid values are from 0 to 15.
This value has no effect on居中Alignment.
指定旋转文字的角度(以度为单位)。
Positive values rotate the text counterclockwise, and negative values rotate the text clockwise. The valid range is from -90 to 90.
这个default orientation is 0 degrees, where the text is printed horizontally.
指定文本在单元格中的填充方式。
换行文字:如果文本不适合单元格,则打印多行文本。任何给定行的高度都将增加,直到可以显示所有文本。
缩小文本以适应单元格: The font size will reduce until all text fits into the width of the cell.
None:文本不会被修改,可能会溢出单元格。
细胞保护
If set to是的,如果在Microsoft Excel中打开工作表保护,单元格中的公式将从视图中隐藏。
If set to是的,the cell will not be editable if worksheet protection has been turned on in Microsoft Excel.
使用说明
For more information regarding Excel styling, see theFME Readers and Writers帮助主题Microsoft Excel Writer Parameters.In particular, see theFormattingsection under使用说明.
编辑变压器参数
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, see变压器参数菜单选项.
Defining Values
有几种方法可以定义要在转换器中使用的值。最简单的方法是简单地键入一个值或字符串,其中可以包括各种类型的函数,如属性引用、数学和字符串函数以及工作区参数。有许多工具和快捷方式可以帮助构造值,通常可以从值字段旁边的下拉式关联菜单中获得。
使用文本编辑器
文本编辑器提供了一种从各种数据源(如属性、参数和常量)构造文本字符串(包括正则表达式)的方便方法,其中结果直接用于参数内部。
使用算术编辑器
这个算术编辑器provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
条件值
根据通过或失败的一个或多个测试条件设置值。
Content
Expressions and strings can include a number of functions, characters, parameters, and more.
设置值时(无论是直接输入参数还是使用编辑器之一构造),包含字符串、数学、日期/时间或FME功能函数的字符串和表达式将对这些函数进行求值。因此,这些函数的名称@<函数名称>)不应用作文本字符串值。
这些函数操作和格式化字符串。 | |
特殊字符 |
A set of control characters is available in the Text Editor. |
Math functions are available in both editors. | |
日期/时间函数 | Date and time functions are available in the Text Editor. |
这个se operators are available in the Arithmetic Editor. | |
这些返回主要具有特定的值。 | |
可使用FME和工作区特定参数。 | |
Creating and Modifying User Parameters | Create your own editable parameters. |
Dialog Options - Tables
带有表样式参数的转换器具有用于填充和操作值的附加工具。
Row Reordering |
单击行项目后启用。选择包括:
|
剪切、复制和粘贴 |
单击行项目后启用。选择包括:
剪切、复制和粘贴可以在变压器内部使用,也可以在变压器之间使用。 |
过滤器 |
开始键入一个字符串,矩阵将只显示与这些字符匹配的行。搜索所有列。这只会影响转换器中属性的显示-它不会改变输出的属性。 |
导入 |
Import使用从数据集读取的一组新属性填充表。具体应用因变压器而异。 |
Reset/Refresh |
通常将表重置为其初始状态,并可能提供其他选项来删除无效项。变压器的性能各不相同。 |
注:并非所有的变压器都提供所有的工具。
FME社亚搏国际在线官网区
FME社区的地方亚搏国际在线官网演示、教程,articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
Search for samples and information about this transformer on theFME社亚搏国际在线官网区.