♻️ refactor(tsl): rebuild codegen taxonomy
Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
# 文档处理 / Word模板控制函数
|
||||
|
||||
### `wordGetCurrentRange()`
|
||||
|
||||
获得当前Word模板函数处理到的位置对象。
|
||||
|
||||
返回:ComObj
|
||||
|
||||
### `wordLastTableMerge(row1, column1, row2, column2)`
|
||||
|
||||
最后插入表格的Row1行Column1列到Row2行Column2列指定的单元格进行合并。 释疑:最后插入的表格是指用函数WordWriteTable插入的表格。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------- | ---- | ---- |
|
||||
| `row1` | int | |
|
||||
| `column1` | any | |
|
||||
| `row2` | any | |
|
||||
| `column2` | any | |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordLastTableSplit(row, column, r_cnt, c_cnt)`
|
||||
|
||||
最后插入表格的Row行Column列指定单元格分割成为RCnt行CCnt列。 释疑:最后插入的表格是指用函数WordWriteTable插入的表格。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ---- | ---- |
|
||||
| `row` | int | |
|
||||
| `column` | any | |
|
||||
| `r_cnt` | any | |
|
||||
| `c_cnt` | any | |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordWriteChart(chart_type, title, axis_title, chart)`
|
||||
|
||||
在Word中输出CHART图。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------ | ------ | --------------------------------------------------------------------------------------- |
|
||||
| `chart_type` | int | 整数类型。图类。 |
|
||||
| `title` | string | :字符串类型。Chart的标题。 |
|
||||
| `axis_title` | string | 字符串类型。Chart的坐标轴标题。 |
|
||||
| `chart` | array | 表格或者二维数组类型。Chart的数据。;Width,Height:整数,指定Chart图的大小。参数可省略。 |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordWriteGraph(graph, title, aux_title, width, height, bk_color, fg_color, font_name, font_size, font_color, coordinate_type, line_width, pic_type)`
|
||||
|
||||
在Word中输出技术分析图,技术图形的输出效果与客户端显示的技术图形相同。除了Graph参数必需以外,其他参数可省略。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `graph` | 图形类别或者图形数组 | 图形类型或者图形数组类型。如果是图形数组类型则将数组内的多个图形组合在一起,例如:数组内含有K线,成交量,MACD线。此处图形类型包括TGraph 以及 TGraphGroup两种数据类型。 |
|
||||
| `title` | string | :字符串类型。Graph的标题。缺省为空。 |
|
||||
| `aux_title` | string | :字符串类型。Graph左上角位置的内容,通常用来显示周期。缺省为空。 |
|
||||
| `width` | int | 整数类型,图形的宽度。缺省为400。 |
|
||||
| `height` | int | 整数类型,图形的高度,缺省为300。 |
|
||||
| `bk_color` | int | 整数类型,图形的背景色。缺省为黑色。 |
|
||||
| `fg_color` | int | 整数类型,图形的前景色(线框等的颜色)。缺省为红色。 |
|
||||
| `font_name` | string | 字符串类型,字体名。缺省为宋体。 |
|
||||
| `font_size` | int | 整数类型,字体大小。缺省为10。 |
|
||||
| `font_color` | int | 整数类型,字体颜色。缺省为黄色。 |
|
||||
| `coordinate_type` | int | 整数类型,主图的坐标类型,0表示普通,1为对数坐标,2为百分比坐标。缺省为0。 |
|
||||
| `line_width` | int | 整数类型,线的宽度。 |
|
||||
| `pic_type` | bool | object |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordWritePicFromFile(file_name)`
|
||||
|
||||
在Word中插入图形文件。返回真表示成功。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | ------ | ------------------------------------------ |
|
||||
| `file_name` | string | 字符串类型,需要插入的图形文件的全路径名。 |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordWriteSampleChart(chart_type)`
|
||||
|
||||
在Word中输出指定类型的CHART范例图。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------ | ---- | ---------------- |
|
||||
| `chart_type` | int | 整数类型,图类。 |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `wordWriteTable(table, write_int_index, write_int_title, inc_int_index)`
|
||||
|
||||
在Word中输出表格。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | ----- | ------------------------------ |
|
||||
| `table` | array | 数组类型。需要输出的表格数据。 |
|
||||
| `write_int_index` | bool | object |
|
||||
| `write_int_title` | bool | object |
|
||||
| `inc_int_index` | bool | object |
|
||||
|
||||
返回:bool
|
||||
Reference in New Issue
Block a user