OutlineCode.ValueId
Contents
[
Hide
]OutlineCode.ValueId property
Gets or sets the Id in the value list associated with the definition in the outline code collection.
public int ValueId { get; set; }
Examples
Shows how to read task’s outline codes.
var project = new Project(DataDir + "OutlineValues2010.mpp");
// read outline codes
foreach (var task in project.RootTask.SelectAllChildTasks())
{
if (task.OutlineCodes.Count <= 0)
{
continue;
}
Console.WriteLine("Print outline codes of the task: " + task.Get(Tsk.Name));
foreach (var value in task.OutlineCodes)
{
Console.WriteLine(" Field Id: " + value.FieldId);
Console.WriteLine(" Value Guid: " + value.ValueGuid);
Console.WriteLine(" Value Id: " + value.ValueId);
}
}
See Also
- class OutlineCode
- namespace Aspose.Tasks
- assembly Aspose.Tasks