|
ConfigurationObject object
Prototype for ConfigurationObject objects. Is kind of SerializableObject object. Syntaxyou cannot create a ConfigurationObject, only derived typed can be created such as: EncodingProperties object, Document.Parameters object, SourceDescription object. Parametersnone. Property Ofnone. Implemented InECMerge 2.1 DescriptionConfigurationObject model the object which can be used for any kind of configuration activity. They can be cloned, set from another object of the same kind, tested for equality and they can be transferred from one document to another with transfer. Propertiesno specific properties. MethodsExamplesExample 1.Copies the parameters from a my_document object, changes a source inside, and checks whether something changed. var param = my_document.parameters.clone (
); // copy parameters See Also
Method cloneSyntaxfunction clone ( ) Parametersnone. Method OfConfigurationObject object, Document.Selection object Implemented InECMerge 2.1 DescriptionConstructs an object of the original object's type and containing the same value, then returns it. ExamplesExample 1.Creates a clone of an OptionsSet. var new_options_set = doc.parameters.settings.clone ();
Method setSyntaxfunction set ( other ) Parametersother. ConfigurationObject. Object of the same actual type as the object on which set method is called. Method OfConfigurationObject object Implemented InECMerge 2.1 DescriptionCopies all the values of the other Object into those of this object. ExamplesExample 1.Creates a clone of an OptionsSet. var option_set = new OptionsSet(); Method transferSyntaxfunction transfer ( other ) Parametersother. ConfigurationObject object. Object of the same actual type as the object on which set method is called. Method OfConfigurationObject object Implemented InECMerge 2.1 DescriptionCopies the values of the other Object into those of this object, values which are called 'transferable from a document to another'. Some settings are indeed link to the original document and it would nonsense to use them for another document (for example, where to save its status). ExamplesExample 1.Creates a new OptionsSet and gets inside it only transferable properties var option_set = new OptionsSet(); Method equalSyntaxfunction equal ( other ) Parametersother. ConfigurationObject object. Object of the same actual type as the object on which set method is called. Method OfConfigurationObject object Implemented InECMerge 2.1 DescriptionReturns true if this object and other object are identical. ExamplesExample 1.Shows a message telling if two documents share the same settings: var doc1, doc2;
|
|