ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Objects > IGDocument Object |
IGDocument object represents a collection of IGPage Object. It can work as a standalone collection not associated with the external file in which case different pages can be loaded to the document from the different sources. Alternatively, document can be associated with the external file in which case it provides the capabilities on in-memory document editing with the ability to save changes back to the external file. It's possible to work with the individual IGPage Object contained in the document by obtaining a reference to it. This object is created explicitly using IGCoreCtl Control.CreateDocument Method or IGCoreCtl Control.CreateObject Method.
IIGDocument extends IIGObject
Clear Method | This method removes all pages from the document. |
GetNextPageIndex Method | This method gets the index of the next valid page in the collection after the specified index. |
GetPreviousPageIndex Method | This method gets the index of the previous valid page in the collection before the specified index. |
RemovePage Method | This method removes a page from the document. |
Page Property | This indexed property allows to get/set IGPage Object reference in the collection at the specified position. |
PageCount Property | This property returns the total number of pages within document. |
Type Property | Document's type. |
ValidPagesCount Property | This property returns total number of valid pages (pages with a valid image content, i.e. where IGPage Object.IsValid Property is True) |