Project.WBSCodeDefinition
Project.WBSCodeDefinition property
Gets or sets WBS Code Definition for the project.
public WBSCodeDefinition WBSCodeDefinition { get; set; }
Examples
Shows how to add WBS codes.
var project = new Project
{
WBSCodeDefinition = new WBSCodeDefinition()
};
project.WBSCodeDefinition.GenerateWBSCode = true;
project.WBSCodeDefinition.VerifyUniqueness = true;
project.WBSCodeDefinition.CodePrefix = "CRS-";
var mask = new WBSCodeMask
{
Length = 2,
Separator = "-",
Sequence = WBSSequence.OrderedNumbers
};
project.WBSCodeDefinition.CodeMaskCollection.Add(mask);
mask = new WBSCodeMask
{
Length = 1,
Separator = "-",
Sequence = WBSSequence.OrderedUppercaseLetters
};
project.WBSCodeDefinition.CodeMaskCollection.Add(mask);
var tsk = project.RootTask.Children.Add("Task 1");
tsk.Children.Add("Task 2");
project.Recalculate();
project.Save(OutDir + @"AddWBSCodes_out.xml", SaveFileFormat.Xml);
See Also
- class WBSCodeDefinition
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks