Loads the properties of a control from an XML document.
Class: SftSlider
Namespace: Softelvdm.SftStyleNET
Assembly: Softelvdm.SftStyleNET
public static void SetContents(
SftSlider control,
XmlDocument doc,
PersistContentsEnum contents );
Public Shared Sub SetContents(
ByVal control As SftSlider,
ByVal doc As XmlDocument,
ByVal contents As PersistContentsEnum )control
The control.
doc
A document created by the SftSlider.GetContents method.
contents
What to load.
Loads the properties of a control from an XML document.
With PersistContentsEnum.Props or All, properties the document does not contain return to their defaults; with None nothing is loaded. SetContents never loads the license information, so a slider created in code is licensed by the application's SftStyle component. A null document throws an ArgumentNullException, a document without the root element of a SftSlider.GetContents document an exception.
See Also SftSlider Class | Classes | SftStyle/NET 3.0