C# Класс Longkong.XmlForms.XmlLoader

This class is able to generate a GUI definition out of a XML file.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateObjectFromFileDefinition ( string fileName ) : object

Loads the XML definition from fileName and sets creates the control.

CreateObjectFromXmlDefinition ( string xmlContent ) : object

Loads the XML definition from a xml definition and sets creates the control.

LoadObjectFromFileDefinition ( object customizationObject, string fileName ) : void

Loads the XML definition from fileName and sets creates the control.

LoadObjectFromStream ( object customizationObject, Stream stream ) : void
LoadObjectFromXmlDefinition ( string xmlContent ) : void

Loads the XML definition from a xml definition and sets creates the control.

LoadObjectFromXmlDocument ( object customizationObject, XmlDocument doc ) : void
XmlLoader ( ) : System

Creates a new instance of XmlLoader.

Приватные методы

Метод Описание
SetAttributes ( object o, XmlElement el ) : void

Sets all properties in the object o to the xml element el defined properties.

SetUpObject ( object currentObject, XmlElement element ) : void

Sets the properties of an object currentObject to the contents of the xml element element

SetValue ( object o, string propertyName, string val ) : void

Sets a property called propertyName in object o to val. This method performs all neccessary casts.

Описание методов

CreateObjectFromFileDefinition() публичный Метод

Loads the XML definition from fileName and sets creates the control.
public CreateObjectFromFileDefinition ( string fileName ) : object
fileName string /// The filename of the XML definition file to load. ///
Результат object

CreateObjectFromXmlDefinition() публичный Метод

Loads the XML definition from a xml definition and sets creates the control.
public CreateObjectFromXmlDefinition ( string xmlContent ) : object
xmlContent string
Результат object

LoadObjectFromFileDefinition() публичный Метод

Loads the XML definition from fileName and sets creates the control.
public LoadObjectFromFileDefinition ( object customizationObject, string fileName ) : void
customizationObject object /// The object to customize. (should be a control or form) /// This is object, because this class may be extended later. ///
fileName string /// The filename of the XML definition file to load. ///
Результат void

LoadObjectFromStream() публичный Метод

public LoadObjectFromStream ( object customizationObject, Stream stream ) : void
customizationObject object
stream Stream
Результат void

LoadObjectFromXmlDefinition() публичный Метод

Loads the XML definition from a xml definition and sets creates the control.
public LoadObjectFromXmlDefinition ( string xmlContent ) : void
xmlContent string
Результат void

LoadObjectFromXmlDocument() публичный Метод

public LoadObjectFromXmlDocument ( object customizationObject, XmlDocument doc ) : void
customizationObject object
doc System.Xml.XmlDocument
Результат void

XmlLoader() публичный Метод

Creates a new instance of XmlLoader.
public XmlLoader ( ) : System
Результат System