CustomFieldType

CustomFieldType enumeration

Specifies the type of a custom field.

public enum CustomFieldType

Values

NameValueDescription
Null0Indicates Null custom field type.
Cost1Indicates Cost custom field type.
Date2Indicates Date custom field type.
Duration3Indicates Duration custom field type.
Finish4Indicates Finish custom field type.
Flag5Indicates Flag custom field type.
Number6Indicates Number custom field type.
Start7Indicates Start custom field type.
Text8Indicates Text custom field type.
OutlineCode9Indicates Outline Code custom field type.
RBS10Indicates RBS (Resource Breakdown Structure) custom field type.

Examples

Shows how to use <see cref=“CustomFieldType” /> (CustomFieldType.Text).

var project = new Project(DataDir + "Project2.mpp");
var definition = ExtendedAttributeDefinition.CreateTaskDefinition(
    CustomFieldType.Text,
    ExtendedAttributeTask.Text1,
    "MyText");
project.ExtendedAttributes.Add(definition);
// work with definitions...

See Also