Onetastic Macro Documentation >
>
Window Window Object
Description
Represents a OneNote window.
Remarks
OneNote can display notebooks in one or more Windows. The collection of these windows can be accessed through GetWindows function. At most one of the windows is the current window. This can be checked by isCurrent property and the current window can be accessed through Window_GetCurrent. A window can be made current via Window_SetCurrent function. New windows can be created by Window_Create and windows can be closed by Window_Close. The page a window is displaying can be changed by Window_NavigateTo.
Properties
Name |
Type |
Access |
Description |
isCurrent |
Bool |
read-only |
Whether this window is the current window or not. |
notebook |
Notebook |
read-only |
The notebook this window is currently displaying. This property may be empty if the window is not currently displaying a notebook. |
page |
Page |
read-only |
The page this window is currently displaying. This property may be empty if the window is not currently displaying a page. |
section |
Section |
read-only |
The section this window is currently displaying. This property may be empty if the window is not currently displaying a section. |
sectionGroup |
SectionGroup |
read-only |
The section group this window is currently displaying. This property may be empty if the window is not currently displaying a section group. |
type |
ObjectType |
read-only |
Type of this object. Always has the value of "Window". |
|