A runtime form designer control

FormDesigner.SaveLayout Method ()

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;

Return Value

returns an XMLDocument object having the form layout information.

Remarks

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.

Events

Event TypeReason
StartSerializeFormIndicates start of form serialization activity.
SerializeFormUsed for adding custom form level properties for serialization.
SerializeComponentUsed for adding custom component level properties for serialization.
EndSerializeFormIndicates end of form serialization activity.

See Also

FormDesigner Class | Viklele.Win.Designer Namespace | FormDesigner.SaveLayout Overload List | LoadLayout