OneNote.Interfaces.ParagraphData interface
An interface describing the data returned by calling paragraph.toJSON()
.
Properties
id | Gets the ID of the Paragraph object. Read-only. |
image | Gets the Image object in the Paragraph. Throws an exception if ParagraphType isn't Image. Read-only. |
ink |
Gets the Ink collection in the Paragraph. Throws an exception if ParagraphType isn't Ink. Read-only. |
paragraphs | The collection of paragraphs under this paragraph. Read only |
rich |
Gets the RichText object in the Paragraph. Throws an exception if ParagraphType is not RichText. Read-only |
table | Gets the Table object in the Paragraph. Throws an exception if ParagraphType is not Table. Read-only. |
type | Gets the type of the Paragraph object. Read-only. |
Property Details
id
Gets the ID of the Paragraph object. Read-only.
id?: string;
Property Value
string
Remarks
image
Gets the Image object in the Paragraph. Throws an exception if ParagraphType isn't Image. Read-only.
image?: OneNote.Interfaces.ImageData;
Property Value
Remarks
inkWords
Gets the Ink collection in the Paragraph. Throws an exception if ParagraphType isn't Ink. Read-only.
inkWords?: OneNote.Interfaces.InkWordData[];
Property Value
Remarks
paragraphs
The collection of paragraphs under this paragraph. Read only
paragraphs?: OneNote.Interfaces.ParagraphData[];
Property Value
Remarks
richText
Gets the RichText object in the Paragraph. Throws an exception if ParagraphType is not RichText. Read-only
richText?: OneNote.Interfaces.RichTextData;
Property Value
Remarks
table
Gets the Table object in the Paragraph. Throws an exception if ParagraphType is not Table. Read-only.
table?: OneNote.Interfaces.TableData;
Property Value
Remarks
type
Gets the type of the Paragraph object. Read-only.
type?: OneNote.ParagraphType | "RichText" | "Image" | "Table" | "Ink" | "Other";
Property Value
OneNote.ParagraphType | "RichText" | "Image" | "Table" | "Ink" | "Other"
Remarks
Office Add-ins