Project.OutlineCodes
Contents
[
Hide
]Project.OutlineCodes property
Gets OutlineCodeDefinitionCollection object. The collection of outline code definitions associated with a project.
public OutlineCodeDefinitionCollection OutlineCodes { get; }
Examples
Shows how to read outline codes.
var project = new Project(DataDir + "OutlineCodes.mpp");
foreach (var ocd in project.OutlineCodes)
{
Console.WriteLine("Alias = " + ocd.Alias);
Console.WriteLine(ocd.AllLevelsRequired ? "It contains property: must have all levels" : "It does not contain property: must have all levels");
Console.WriteLine(ocd.Enterprise ? "It is an enterprise custom outline code." : "It is not an enterprise custom outline code.");
Console.WriteLine("Reference to another custom field for which this outline code definition is an alias is = " + ocd.EnterpriseOutlineCodeAlias);
Console.WriteLine("Field Id = " + ocd.FieldId);
Console.WriteLine("Field Name = " + ocd.FieldName);
Console.WriteLine("Phonetic Alias = " + ocd.PhoneticAlias);
Console.WriteLine("Guid = " + ocd.Guid);
// Display outline code masks
foreach (var outlineMask in ocd.Masks)
{
Console.WriteLine("Level of a mask = " + outlineMask.Level);
Console.WriteLine("Mask = " + outlineMask);
}
// Display out line code values
foreach (var outlineMask1 in ocd.Values)
{
Console.WriteLine("Description of outline value = " + outlineMask1.Description);
Console.WriteLine("Value Id = " + outlineMask1.ValueId);
Console.WriteLine("Value = " + outlineMask1.Value);
Console.WriteLine("Type = " + outlineMask1.Type);
}
}
See Also
- class OutlineCodeDefinitionCollection
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks