FieldHelper.GetDefaultTaskFieldTitle

FieldHelper.GetDefaultTaskFieldTitle method

Returns a default title of the specific task field.

public static string GetDefaultTaskFieldTitle(TaskKey taskKey)
ParameterTypeDescription
taskKeyTaskKeyTask field to get a default title.

Return Value

A default title of the specific task field if the field can be displayed in MS Project’s view, null otherwise.

Examples

Shows how to get default field title for the specific task’s field.

Console.WriteLine("Title for Tsk.ActualCost: " + FieldHelper.GetDefaultTaskFieldTitle(Tsk.ActualCost.KeyType));
Console.WriteLine("Title for Tsk.PercentWorkComplete: " + FieldHelper.GetDefaultTaskFieldTitle(Tsk.PercentWorkComplete.KeyType));

See Also