Project.Views
Project.Views property
Gets a list of View
objects.
public ViewCollection Views { get; }
Examples
Shows how to set a default project view.
var project = new Project(DataDir + "Project5.mpp");
View view = null;
foreach (var v in project.Views)
{
if (v.Name == "&Gantt Chart")
{
view = v;
}
}
// set default view
project.DefaultView = view;
project.Save(OutDir + @"SaveGantChartView_out.mpp", new MPPSaveOptions { WriteViewData = true });
See Also
- class ViewCollection
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks