ApiSort
表示 ApiSort 类。
备注
此功能仅在 ONLYOFFICE Docs 付费版本中可用。
属性
| 名称 | 类型 | 描述 |
|---|---|---|
| Header | string | 返回标题设置(对于 ListObject 始终为 “xlYes”)。 |
| MatchCase | boolean | 返回或设置排序是否区分大小写。 |
| Orientation | XlSortOrientation | 返回或设置排序方向。 |
| Parent | ApiListObject | 返回父列表对象。 |
| Rng | ApiRange | null | 返回排序应用于的数据正文范围。 |
| SortFields | ApiSortFields | 返回排序字段的集合。 |
| SortMethod | XlSortMethod | 返回或设置中文文本的排序方法。 |
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| Apply | 无 | 将当前排序设置应用于表格。 |
| GetHeader | string | 返回标题设置。对于 ListObject 始终为 “xlYes”。 |
| GetMatchCase | boolean | 返回排序是否区分大小写。 |
| GetOrientation | XlSortOrientation | 返回排序方向:“xlTopToBottom” 或 “xlLeftToRight”。 |
| GetParent | ApiListObject | 返回父列表对象。 |
| GetRng | ApiRange | null | 返回排序应用于的数据正文范围。 |
| GetSortFields | ApiSortFields | 返回排序字段集合。 |
| GetSortMethod | XlSortMethod | 返回排序方法:“xlPinYin” 或 “xlStroke”。 |
| SetMatchCase | 无 | 设置排序是否区分大小写。 |
| SetOrientation | 无 | 设置排序方向。 |
| SetSortMethod | 无 | 设置排序方法。 |