CopyToOptions.CopyViewData
CopyToOptions.CopyViewData property
Gets or sets a value indicating whether to copy view data while copying project data. Default value is true.
public bool CopyViewData { get; set; }
Examples
Shows how to use project copy options.
var project = new Project(DataDir + "CopyToProjectEmpty.xml");
File.Copy(DataDir + "CopyToProjectEmpty.mpp", OutDir + "ProjectCopying_out.mpp", true);
var mppProject = new Project(OutDir + "ProjectCopying_out.mpp");
// skip copying of view data while copying common project data.
var copyToOptions = new CopyToOptions();
copyToOptions.CopyViewData = false;
project.CopyTo(mppProject, copyToOptions);
See Also
- class CopyToOptions
- namespace Aspose.Tasks
- assembly Aspose.Tasks