OneNote.Interfaces.ParagraphLoadOptions interface

页面上可见内容的容器。 一个 Paragraph 可包含任意一个 ParagraphType 类型的内容。

注解

[ API 集:OneNoteApi 1.1 ]

属性

$all

$all为 LoadOptions 指定将加载所有标量属性 (例如:Range.address) 但不加载导航属性 (例如: Range.format.fill.color) 。

id

获取段落对象的 ID。 只读。

image

获取 Paragraph 中的 Image 对象。 如果 ParagraphType 不是 Image,则引发异常。

inkWords

获取 Paragraph 中的 Ink 集合。 如果 ParagraphType 不为 Ink,则引发异常。

outline

获取包含“段落”的“边框”对象。

paragraphs

此段落下的段落集合。 只读

parentParagraph

获取父段落对象。 如果父段落不存在,则引发。

parentParagraphOrNull

获取父段落对象。 如果父段落不存在,则返回 null。

parentTableCell

获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则引发 ItemNotFound。

parentTableCellOrNull

获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则返回 null。

richText

获取 Paragraph 中的 RichText 对象。 如果 ParagraphType 不为 RichText,则引发异常。

table

获取 Paragraph 中的 Table 对象。 如果 ParagraphType 不为 Table,则引发异常。

type

获取 Paragraph 对象的类型。 只读。

属性详细信息

$all

$all为 LoadOptions 指定将加载所有标量属性 (例如:Range.address) 但不加载导航属性 (例如: Range.format.fill.color) 。

$all?: boolean;

属性值

boolean

id

获取段落对象的 ID。 只读。

id?: boolean;

属性值

boolean

注解

[ API 集:OneNoteApi 1.1 ]

image

获取 Paragraph 中的 Image 对象。 如果 ParagraphType 不是 Image,则引发异常。

image?: OneNote.Interfaces.ImageLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

inkWords

获取 Paragraph 中的 Ink 集合。 如果 ParagraphType 不为 Ink,则引发异常。

inkWords?: OneNote.Interfaces.InkWordCollectionLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

outline

获取包含“段落”的“边框”对象。

outline?: OneNote.Interfaces.OutlineLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

paragraphs

此段落下的段落集合。 只读

paragraphs?: OneNote.Interfaces.ParagraphCollectionLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

parentParagraph

获取父段落对象。 如果父段落不存在,则引发。

parentParagraph?: OneNote.Interfaces.ParagraphLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

parentParagraphOrNull

获取父段落对象。 如果父段落不存在,则返回 null。

parentParagraphOrNull?: OneNote.Interfaces.ParagraphLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

parentTableCell

获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则引发 ItemNotFound。

parentTableCell?: OneNote.Interfaces.TableCellLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

parentTableCellOrNull

获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则返回 null。

parentTableCellOrNull?: OneNote.Interfaces.TableCellLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

richText

获取 Paragraph 中的 RichText 对象。 如果 ParagraphType 不为 RichText,则引发异常。

richText?: OneNote.Interfaces.RichTextLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

table

获取 Paragraph 中的 Table 对象。 如果 ParagraphType 不为 Table,则引发异常。

table?: OneNote.Interfaces.TableLoadOptions;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

type

获取 Paragraph 对象的类型。 只读。

type?: boolean;

属性值

boolean

注解

[ API 集:OneNoteApi 1.1 ]