ApiSection
表示 ApiSection 类。
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| GetClassType | "section" | 返回 ApiSection 类的类型。 |
| GetColumnsCount | number | 返回此节中的列数。 |
| GetColumnsSpaces | twips[] | 返回列之间的距离值数组,以点的二十分之一为单位(1/1440 英寸)。 |
| GetColumnsWidths | twips[] | 返回列宽值数组,以点的二十分之一为单位(1/1440 英寸)。 |
| GetFooter | ApiDocumentContent | 返回指定页脚类型的内容。 |
| GetFooterDistance | twips | 返回从页面底边到页脚底边的距离。 |
| GetHeader | ApiDocumentContent | 返回指定页眉类型的内容。 |
| GetHeaderDistance | twips | 返回从页面顶边到页眉顶边的距离。 |
| GetNext | ApiSection | null | 返回下一节(如果存在)。 |
| GetPageHeight | twips | 获取当前节的页面高度。 |
| GetPageMarginBottom | twips | 返回当前节中所有页面的下边距。 |
| GetPageMarginLeft | twips | 返回当前节中所有页面的左边距。 |
| GetPageMarginRight | twips | 返回当前节中所有页面的右边距。 |
| GetPageMarginTop | twips | 返回当前节中所有页面的上边距。 |
| GetPageWidth | twips | 获取当前节的页面宽度。 |
| GetPrevious | ApiSection | null | 返回上一节(如果存在)。 |
| GetStartPageNumber | number | 返回指定节的起始页码。 |
| GetType | SectionBreakType | 返回节分隔符类型。 |
| RemoveFooter | boolean | 从当前节中移除指定类型的页脚。移除后,页脚将从 |
| RemoveHeader | boolean | 从当前节中移除指定类型的页眉。移除后,页眉将从 |
| SetEqualColumns | boolean | 指定当前节中的所有文本列宽度相等。 |
| SetFooterDistance | boolean | 指定从页面底边到页脚底边的距离。 |
| SetHeaderDistance | boolean | 指定从页面顶边到页眉顶边的距离。 |
| SetMargins | boolean | 指定此节中所有页面的页边距。ApiSection#SetPageMargins 的别名。 |
| SetNotEqualColumns | boolean | 指定当前节中的所有栏具有不同的宽度。栏数等于 |
| SetPageMargins | boolean | 指定此节中所有页面的页边距。 |
| SetPageSize | boolean | 指定当前节中所有页面的属性(大小和方向)。 |
| SetStartPageNumber | boolean | 设置指定节的起始页码。 |
| SetTitlePage | boolean | 指定此文档中当前节的第一页是否具有不同的页眉和页脚。 |
| SetType | boolean | 指定当前节的类型。节类型定义当前 |
| ToJSON | JSON | 将 ApiSection 对象转换为 JSON 对象。 |