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 is not Image. Read-only.

inkWords

Gets the Ink collection in the Paragraph. Throws an exception if ParagraphType is not Ink. Read-only.

paragraphs

The collection of paragraphs under this paragraph. Read only

richText

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

[ API set: OneNoteApi 1.1 ]

image

Gets the Image object in the Paragraph. Throws an exception if ParagraphType is not Image. Read-only.

image?: OneNote.Interfaces.ImageData;

Property Value

Remarks

[ API set: OneNoteApi 1.1 ]

inkWords

Gets the Ink collection in the Paragraph. Throws an exception if ParagraphType is not Ink. Read-only.

inkWords?: OneNote.Interfaces.InkWordData[];

Property Value

Remarks

[ API set: OneNoteApi 1.1 ]

paragraphs

The collection of paragraphs under this paragraph. Read only

paragraphs?: OneNote.Interfaces.ParagraphData[];

Property Value

Remarks

[ API set: OneNoteApi 1.1 ]

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

[ API set: OneNoteApi 1.1 ]

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

[ API set: OneNoteApi 1.1 ]

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

[ API set: OneNoteApi 1.1 ]