combit List & Label 24 - .NET Online Web Help
CopyFrom Method (DomItem)
Example 


combit.ListLabel24.Dom Namespace > DomItem Class : CopyFrom Method
Copies all cloneable properties from one item to another. Make sure to call ResetInformation on the modified project in order to rebuild the object model afterwards.
Overload List
OverloadDescription
 
Example
ListLabel LL = new ListLabel();
ProjectList newProj = new ProjectList(LL);
newProj.Open(@"c:\users\public\copy.lst", LlDomFileMode.Create, LlDomAccessMode.ReadWrite);

ListLabel LL2 = new ListLabel();
ProjectList sourceProj = new ProjectList(LL2);
sourceProj.Open(@"c:\users\public\original.lst", LlDomFileMode.Open, LlDomAccessMode.ReadOnly);

newProj.CopyFrom(sourceProj);
newProj.ResetInformation();
newProj.Save();
newProj.Close();
sourceProj.Close();

LL2.Dispose();
LL.Dispose();
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

DomItem Class
DomItem Members