The Window object is used to get information about and to control windows in ConceptDraw. The following window types exist in ConceptDraw: document view, library view, table view and ConceptDraw Basic Editor window.
Property | Supported Window Types | Description |
ID | all windows | Read-only. Returns the window ID. |
Type | all windows | Read-only. Returns the window type. |
State | all windows | Read-only. Returns the state of the window. |
Left | all windows | Read-only. Return the X coordinate of the top left point of the window. |
Top | all windows | Read-only. Return the Y coordinate of the top left point of the window. |
Height | all windows | Read-only. Returns the window height in pixels. |
Width | all windows | Read-only. Returns the window width in pixels. |
ViewZoom | document view | The zoom level set in this window. |
ViewCenterX | document view | Read-only. Returns the X coordinate of the point, displayed in the center of the window. |
ViewCenterY | document view | Read-only. Returns the X coordinate of the point, displayed in the center of the window. |
Document | document view | Read-only. Returns the document which contents is displayed in the window. |
Library | library view | Read-only. Returns the active library in the library window. |
Page | document view | Read-only. Returns the document page displayed in the window. |
Shape | document view, table view | Read-only. Returns the shape displayed in the window, if the window is the Edit Group window. |
FindLib | library view | Returns the index of the library in the library collection of the window. |
library view | Returns a library by its index in the library collection of the window. | |
LibByName | library view | Returns a library by the specified name (the Name property). |
LibsNum | library view | Returns the number of the libraries, opened in the window. |
Deselect | document view | Deselect a shape by the specified ID (the ID property) of the shape. |
DeselectAll | document view | Deselects all shapes on the page displayed in the window. |
Select | document view | Selects a shape by the specified ID (the ID property) of the shape. |
SelectAll | document view | Selects all shapes on the page displayed in the window. |
SelectedNum | document view | Returns the number of selected shapes on the page, displayed in the window. |
SetWindowRect | document view | Sets the size and position of the window. |
Minimize | all windows | Minimizes the window. |
Maximize | all windows | Maximizes the window. |
Restore | all windows | Restores the original size and position of the window. |
ScrollViewTo | document view | Scrolls the window to the point with the specified coordinates. |
An instance of the Window object can be retrieved by using
the following methods and properties:
The Application object: ActiveLibWnd
property, LibWindowByID method,
FirstLibWindow method, NextLibWindow
method.
The Document object: ActiveView
property, ViewByID method, FirstView
method, NextView method.
See Also |
Application object, Document object |