# ProjectCustomFieldDefinition

A Microsoft Project custom-field definition identified by its format field ID.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectCustomFieldDefinition.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L9)

**Base**

`ProjectObject`

**Modifiers**

sealed

A Microsoft Project custom-field definition identified by its format field ID.

## Inheritance

- [ProjectObject](/api/project/officeimo-project-projectobject/)
- ProjectCustomFieldDefinition

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [ProjectDocument.CustomFields](/api/project/officeimo-project-projectdocument/#property-customfields)

### Accepted by parameters 2

- Method [ProjectDocument.GetCustomFieldLookupTable](/api/project/officeimo-project-projectdocument/#method-getcustomfieldlookuptable-officeimo-project-projectcustomfielddefinition) parameter `definition`
- Method [ProjectDocument.SetCustomFieldLookupValue](/api/project/officeimo-project-projectdocument/#method-setcustomfieldlookupvalue-officeimo-project-projectentity-officeimo-project-projectcustomfielddefinition-officeimo-project-projectoutlinecodelookupvalue) parameter `definition`

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ProjectCollection<ProjectLookupValue> LookupValues { get; }` [#](#property-lookupvalues)

[ProjectCustomFieldDefinition.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L9)

Allowed or suggested lookup values.

`public string? FieldId { get; set; }` [#](#property-fieldid)

[ProjectCustomFieldDefinition.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L13)

Stored field id; null represents an absent source value.

`public string? FieldName { get; set; }` [#](#property-fieldname)

[ProjectCustomFieldDefinition.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L17)

Stored field name; null represents an absent source value.

`public string? Alias { get; set; }` [#](#property-alias)

[ProjectCustomFieldDefinition.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L21)

Stored alias; null represents an absent source value.

`public int? FieldType { get; set; }` [#](#property-fieldtype)

[ProjectCustomFieldDefinition.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L25)

Stored field type; null represents an absent source value.

`public string? Formula { get; set; }` [#](#property-formula)

[ProjectCustomFieldDefinition.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L29)

Stored formula; null represents an absent source value.

`public int? SummaryCalculation { get; set; }` [#](#property-summarycalculation)

[ProjectCustomFieldDefinition.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L33)

XML CalculationType for summary rows: 0 retains no calculation, 1 rolls up children, and 2 evaluates the formula.

`public int? RollupType { get; set; }` [#](#property-rolluptype)

[ProjectCustomFieldDefinition.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L37)

Stored XML RollupType. Unsupported operators are retained and diagnosed when calculation is requested.

`public string? Guid { get; set; }` [#](#property-guid)

[ProjectCustomFieldDefinition.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L41)

Stored guid; null represents an absent source value.

`public string? LookupTableGuid { get; set; }` [#](#property-lookuptableguid)

[ProjectCustomFieldDefinition.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L45)

Ltuid identifying the shared outline-code lookup table.

`public bool? RestrictValues { get; set; }` [#](#property-restrictvalues)

[ProjectCustomFieldDefinition.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectCustomFieldDefinition.cs#L49)

Stored restrict values; null represents an absent source value.

<!-- PowerForge markdown artifact sha256:279F1C2DF4B2785FFB74C84587440669D7BC9B991CB0DEA332A6538CBDCA266B -->
