| 164 | The Elements collection contains the resource identifiers of the print layout elements that are contained within the print layout. |
| 165 | |
| 166 | ==== !MgPrintLayout class ==== |
| 167 | |
| 168 | The realization of a print layout is an instance of !MgPrintLayout class. In a 3rd Party application, it will be actually an instance of !XxxMapPrintLayout, which derives from !MgPrintLayout. In !MapGuide, it’ll be an instance of !MapGuide-specific print layout realization class. |
| 169 | |
| 170 | The !GetElements() method returns a collection of actual runtime print layout element instances that are created for the Elements resource id collection. This is all very similar to !MgMapBase having !GetLayers() returning !MgLayerCollection. Whenever a print layout element is added to or removed from the elements collection, a notification is sent out for listeners interested in the change. Those notifications are obviously on the !XxxMapPrintLayout class since the Common Platform API does not handle events. |