[This is preliminary documentation and is subject to change.]

Loads keywords and synonyms from given XML document

Namespace: Tools.WindowsT.FormsT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public void LoadFromXML(
	XDocument doc,
	bool JustThis
)
Visual Basic
Public Sub LoadFromXML ( _
	doc As XDocument, _
	JustThis As Boolean _
)
Visual C++
public:
void LoadFromXML(
	XDocument^ doc, 
	bool JustThis
)
F#
member LoadFromXML : 
        doc:XDocument * 
        JustThis:bool -> unit 
JScript
public function LoadFromXML(
	doc : XDocument, 
	JustThis : boolean
)

Parameters

doc
Type: System.Xml.Linq..::..XDocument
Document to load setting from
JustThis
Type: System..::..Boolean
True to ensure that load involves only this instance of KeyWordsEditor. False to load keywords and sysnonyms to shared collections (if possible).

Remarks

If JustThis is true, collections AutoCompleteStable and Synonyms are re-created and AutomaticLists is ste to false.

If JustThis is false, those collections are emptied and filled with newly loaded values. So, such load has effect on all instances of KeyWordsEditor which share same collections (using AutomaticLists and same AutoCompleteCacheName, or by seting those collections manuallly tu same instance). JustThis set to false is ignored for particular collection if the collection is null (in such case it is always re-created).

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptiondoc is null
System.Xml.Schema..::..XmlSchemaExceptionDocument doc does not comply with XML-Schema http://dzonny.cz/xml/Tools.WindowsT.FormsT.KeyWordsEditor. This schema is stored as embdeded resource Tools.WindowsT.FormsT.KeyWordsEditor.xsd in this assembly.

See Also