OneNote.Interfaces.ParagraphLoadOptions interface
页面上可见内容的容器。 一个 Paragraph 可包含任意一个 ParagraphType 类型的内容。
注解
属性
$all |
|
id | 获取段落对象的 ID。 此为只读属性。 |
image | 获取 Paragraph 中的 Image 对象。 如果 ParagraphType 不是 Image,则引发异常。 |
ink |
获取 Paragraph 中的 Ink 集合。 如果 ParagraphType 不为 Ink,则引发异常。 |
outline | 获取包含“段落”的“边框”对象。 |
paragraphs | 此段落下的段落集合。 只读 |
parent |
获取父段落对象。 如果父段落不存在,则引发。 |
parent |
获取父段落对象。 如果父段落不存在,则返回 null。 |
parent |
获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则引发 ItemNotFound。 |
parent |
获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则返回 null。 |
rich |
获取 Paragraph 中的 RichText 对象。 如果 ParagraphType 不为 RichText,则引发异常。 |
table | 获取 Paragraph 中的 Table 对象。 如果 ParagraphType 不为 Table,则引发异常。 |
type | 获取 Paragraph 对象的类型。 此为只读属性。 |
属性详细信息
$all
$all
为 LoadOptions 指定将加载所有标量属性 (例如:Range.address
) 但不加载导航属性 (例如: Range.format.fill.color
) 。
$all?: boolean;
属性值
boolean
id
image
获取 Paragraph 中的 Image 对象。 如果 ParagraphType 不是 Image,则引发异常。
image?: OneNote.Interfaces.ImageLoadOptions;
属性值
注解
inkWords
获取 Paragraph 中的 Ink 集合。 如果 ParagraphType 不为 Ink,则引发异常。
inkWords?: OneNote.Interfaces.InkWordCollectionLoadOptions;
属性值
注解
outline
获取包含“段落”的“边框”对象。
outline?: OneNote.Interfaces.OutlineLoadOptions;
属性值
注解
paragraphs
此段落下的段落集合。 只读
paragraphs?: OneNote.Interfaces.ParagraphCollectionLoadOptions;
属性值
注解
parentParagraph
获取父段落对象。 如果父段落不存在,则引发。
parentParagraph?: OneNote.Interfaces.ParagraphLoadOptions;
属性值
注解
parentParagraphOrNull
获取父段落对象。 如果父段落不存在,则返回 null。
parentParagraphOrNull?: OneNote.Interfaces.ParagraphLoadOptions;
属性值
注解
parentTableCell
获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则引发 ItemNotFound。
parentTableCell?: OneNote.Interfaces.TableCellLoadOptions;
属性值
注解
parentTableCellOrNull
获取包含 Paragraph 的 TableCell 对象(如果存在)。 如果父级不为 TableCell,则返回 null。
parentTableCellOrNull?: OneNote.Interfaces.TableCellLoadOptions;
属性值
注解
richText
获取 Paragraph 中的 RichText 对象。 如果 ParagraphType 不为 RichText,则引发异常。
richText?: OneNote.Interfaces.RichTextLoadOptions;
属性值
注解
table
获取 Paragraph 中的 Table 对象。 如果 ParagraphType 不为 Table,则引发异常。
table?: OneNote.Interfaces.TableLoadOptions;