OneNote.Interfaces.ParagraphData interface

一个接口,用于描述通过调用 paragraph.toJSON()返回的数据。

属性

id

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

image

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

inkWords

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

paragraphs

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

richText

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

table

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

type

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

属性详细信息

id

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

id?: string;

属性值

string

注解

[ API 集:OneNoteApi 1.1 ]

image

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

image?: OneNote.Interfaces.ImageData;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

inkWords

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

inkWords?: OneNote.Interfaces.InkWordData[];

属性值

注解

[ API 集:OneNoteApi 1.1 ]

paragraphs

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

paragraphs?: OneNote.Interfaces.ParagraphData[];

属性值

注解

[ API 集:OneNoteApi 1.1 ]

richText

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

richText?: OneNote.Interfaces.RichTextData;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

table

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

table?: OneNote.Interfaces.TableData;

属性值

注解

[ API 集:OneNoteApi 1.1 ]

type

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

type?: OneNote.ParagraphType | "RichText" | "Image" | "Table" | "Ink" | "Other";

属性值

OneNote.ParagraphType | "RichText" | "Image" | "Table" | "Ink" | "Other"

注解

[ API 集:OneNoteApi 1.1 ]