A runtime form designer control

FormDesigner.LoadLayout Method (XmlDocument)

Loads and creates the component layout from an Xml document object.

[Visual Basic]
Public Function LoadLayout( _ 
   ByVal layoutDocument As XmlDocument _ 
) As ArrayList
[C#]
public ArrayList LoadLayout(
   XmlDocument layoutDocument
);
[C++]
public: ArrayList* LoadLayout(
   XmlDocument* layoutDocument
);
[JScript]
public function LoadLayout(
   XmlDocument layoutDocument
): ArrayList;

Parameters

layoutDocument
An Xml document object having form layout data.

Return Value

Returns an array list containing the list of errors encountered during LoadLayout.

Remarks

This method will trigger form deserialization events where you can load the previously stored form level data from the archive. It will also trigger component deserialization event for each of the components saved in the archive. Deserialization event is triggered after the component has been created and positioned.

Events

Event TypeReason
StartDeserializeFormIndicates start of form deserialization activity.
DeserializeFormUsed for reading custom form level properties from previously serialized layout data.
DeserializeComponentUsed for reading custom component level properties from previously serialized layout data.
EndDeserializeFormIndicates end of form deserialization activity.

See Also

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