Store simple settings from controls into an XML element
| C# | Visual Basic | Visual C++ |
public class SettingsSerializer
Public Class SettingsSerializer
public ref class SettingsSerializer
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| SettingsSerializer(Object) |
Store simple settings from controls into an XML element
| |
| AddBooleanSetting(String) |
Add a boolean object to serialize
| |
| AddControlSetting(String, Control) |
Add a Control to serialize.
Supported: CheckBox.Checked, RadioButton.Checked, NumericUpDown.Value, ListBox.Items(string[]), Panel.Width/Height, TextBox.Text
Supported: ComboBox.Text(ComboBoxStyle.DropDown), Form.Left/Top/Width/Height, TrackBar.Value, CheckedListBox.Items(string[])/(ItemChecked)
Supported: PictureBox.BackColor, Button.Text/Font
| |
| AddDirectoryInfoSetting(String) |
Add a DirectoryInfo object to serialize
| |
| AddIntSetting(String) |
Add an Int32 object to serialize
| |
| AddLongSetting(String) |
Add an Int64 object to serialize
| |
| AddStringSetting(String) |
Add a String object to serialize
| |
| ExportToXml(XmlTextWriter) |
Serializes all of the objects currently added to XML
| |
| FinializeComboBoxes()()()() | ||
| ImportFromXml(XmlTextReader) |
Import the serialized settings from the XML pull parser
| |
| RemoveControlSetting(String) |
| Object | |
| SettingsSerializer | |