C# Class Nexus.Client.Settings.WindowPositions

Stores the position of windows.
Inheritance: IXmlSerializable
Datei anzeigen Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
GetSchema ( ) : XmlSchema

This method is reserved, and returns as required.

GetWindowPosition ( string p_strWindowName, Form p_frmWindow ) : void

Sets the given window's position based on the stored values.

ReadXml ( XmlReader reader ) : void

Deserializes the object from XML.

SetWindowPosition ( string p_strWindowName, Form p_frmWindow ) : void

Stores the given window's position using the given name.

WriteXml ( XmlWriter writer ) : void

Serializes the object to XML.

Method Details

GetSchema() public method

This method is reserved, and returns as required.
public GetSchema ( ) : XmlSchema
return System.Xml.Schema.XmlSchema

GetWindowPosition() public method

Sets the given window's position based on the stored values.
public GetWindowPosition ( string p_strWindowName, Form p_frmWindow ) : void
p_strWindowName string The name of the window settings to use to position the given window.
p_frmWindow System.Windows.Forms.Form The window to position.
return void

ReadXml() public method

Deserializes the object from XML.
public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader The xml reader from which to deserialize the object.
return void

SetWindowPosition() public method

Stores the given window's position using the given name.
public SetWindowPosition ( string p_strWindowName, Form p_frmWindow ) : void
p_strWindowName string The name under which to store the window settings.
p_frmWindow System.Windows.Forms.Form The window whose settings are to be stored.
return void

WriteXml() public method

Serializes the object to XML.
public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter The xml writer to which to serialize the object.
return void