OneNote.Interfaces.PageContentData interface
An interface describing the data returned by calling pageContent.toJSON()
.
Properties
id | Gets the ID of the PageContent object. Read-only. |
image | Gets the Image in the PageContent object. Throws an exception if PageContentType is not Image. |
ink | Gets the ink in the PageContent object. Throws an exception if PageContentType is not Ink. |
left | Gets or sets the left (X-axis) position of the PageContent object. |
outline | Gets the Outline in the PageContent object. Throws an exception if PageContentType is not Outline. |
top | Gets or sets the top (Y-axis) position of the PageContent object. |
type | Gets the type of the PageContent object. Read-only. |
Property Details
id
Gets the ID of the PageContent object. Read-only.
id?: string;
Property Value
string
Remarks
image
Gets the Image in the PageContent object. Throws an exception if PageContentType is not Image.
image?: OneNote.Interfaces.ImageData;
Property Value
Remarks
ink
Gets the ink in the PageContent object. Throws an exception if PageContentType is not Ink.
ink?: OneNote.Interfaces.FloatingInkData;
Property Value
Remarks
left
Gets or sets the left (X-axis) position of the PageContent object.
left?: number;
Property Value
number
Remarks
outline
Gets the Outline in the PageContent object. Throws an exception if PageContentType is not Outline.
outline?: OneNote.Interfaces.OutlineData;
Property Value
Remarks
top
Gets or sets the top (Y-axis) position of the PageContent object.
top?: number;
Property Value
number
Remarks
type
Gets the type of the PageContent object. Read-only.
type?: OneNote.PageContentType | "Outline" | "Image" | "Ink" | "Other";
Property Value
OneNote.PageContentType | "Outline" | "Image" | "Ink" | "Other"
Remarks
Office Add-ins