Saves the form and component layout data to an XmlDocument object.
[Visual Basic] Public Function SaveLayout() As XmlDocument [C#] public XmlDocument SaveLayout(); [C++] public: XmlDocument* SaveLayout(); [JScript] public function SaveLayout(): XmlDocument;
returns an XMLDocument object having the form layout information.
This method will save layout information in the specified file. It will automatically save components type information, name , position and other properties.
It will trigger form serialization events to let you store any form level data that you want to put in the archive. It will also trigger component serialization event for each of the contained component to let you specify any component level data that should be save in the archive.
| Event Type | Reason |
|---|---|
| StartSerializeForm | Indicates start of form serialization activity. |
| SerializeForm | Used for adding custom form level properties for serialization. |
| SerializeComponent | Used for adding custom component level properties for serialization. |
| EndSerializeForm | Indicates end of form serialization activity. |
FormDesigner Class | Viklele.Win.Designer Namespace | FormDesigner.SaveLayout Overload List | LoadLayout