OneNote.Interfaces.PageContentLoadOptions interface
Represents a region on a page that contains top-level content types such as Outline or Image. A PageContent object can be assigned an XY position.
Remarks
Properties
$all | Specifying |
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. |
parent |
Gets the page that contains the PageContent object. |
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
$all
Specifying $all
for the LoadOptions loads all the scalar properties (e.g.: Range.address
) but not the navigational properties (e.g.: Range.format.fill.color
).
$all?: boolean;
Property Value
boolean
id
Gets the ID of the PageContent object. Read-only.
id?: boolean;
Property Value
boolean
Remarks
image
Gets the Image in the PageContent object. Throws an exception if PageContentType is not Image.
image?: OneNote.Interfaces.ImageLoadOptions;
Property Value
Remarks
ink
Gets the ink in the PageContent object. Throws an exception if PageContentType is not Ink.
ink?: OneNote.Interfaces.FloatingInkLoadOptions;
Property Value
Remarks
left
Gets or sets the left (X-axis) position of the PageContent object.
left?: boolean;
Property Value
boolean
Remarks
outline
Gets the Outline in the PageContent object. Throws an exception if PageContentType is not Outline.
outline?: OneNote.Interfaces.OutlineLoadOptions;
Property Value
Remarks
parentPage
Gets the page that contains the PageContent object.
parentPage?: OneNote.Interfaces.PageLoadOptions;
Property Value
Remarks
top
Gets or sets the top (Y-axis) position of the PageContent object.
top?: boolean;
Property Value
boolean
Remarks
type
Gets the type of the PageContent object. Read-only.
type?: boolean;
Property Value
boolean
Remarks
Office Add-ins