How to clone properties (object)?

Topics: User Forum
Apr 20, 2010 at 1:47 PM
Edited Apr 20, 2010 at 1:50 PM

sorry about my english...


that is the situation:

i have a form with a tabcontrol.

multipage assembled dynamically. each page have 1 scintillanet object.

1 in page 1, other in page 2, other in page 3, other in page n...

the scintillanet object of page 1 was manually configured. others do not because they are assembled dynamically.


question:

how to copy the object configuration (all properties and atributes) of page 1 to page N?

appreciate the attention.

thanks

Coordinator
Apr 23, 2010 at 1:02 AM

Chris knows the configuration better than I do so he's the right guy to ask, however, based on my understanding of the configuration -- it's only one way. You can read a configuration into a ScintillaNET control, but changing the properties on ScintillaNET does not in any way update the current configuration and so there is no way to then copy that whole thing over to another instance of ScintillaNET.

The only way to achieve what your looking for is to copy over the ScintillaNET properties/collections yourself, one-by-one.

Thanks,
Jacob