# ProjectIndicatorRule

An ordered, caller-supplied indicator rule. Native Project graphical-indicator tables are not inferred or rewritten.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectIndicators.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/CustomFields/ProjectIndicators.cs#L24)

**Modifiers**

sealed

An ordered, caller-supplied indicator rule. Native Project graphical-indicator tables are not inferred or rewritten.

## Inheritance

- object
- ProjectIndicatorRule

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [ProjectDocument.EvaluateIndicators](/api/project/officeimo-project-projectdocument/#method-evaluateindicators-officeimo-project-projectcustomfieldentitykind-collections-generic-ienumerable-officeimo-project-projectindicatorrule-boolean-officeimo-project-projectcustomfieldcalculationoptions-threading-cancellationtoken) parameter `rules`

Filter members 

Show inherited

## Constructors

`public ProjectIndicatorRule(string expression, ProjectIndicatorIcon icon, string label)` [#](#constructor-ctor-string-officeimo-project-projectindicatoricon-string)

[ProjectIndicators.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/CustomFields/ProjectIndicators.cs#L24)

Creates a predicate using the same bounded expression language as custom fields.

Parameters

**expression string required**

**icon OfficeIMO.Project.ProjectIndicatorIcon required**

**label string required**

## 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 string Expression { get; }` [#](#property-expression)

[ProjectIndicators.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/CustomFields/ProjectIndicators.cs#L30)

Predicate evaluated against the task or resource and its calculated custom fields.

`public ProjectIndicatorIcon Icon { get; }` [#](#property-icon)

[ProjectIndicators.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/CustomFields/ProjectIndicators.cs#L32)

Symbol selected when the predicate is true.

`public string Label { get; }` [#](#property-label)

[ProjectIndicators.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/CustomFields/ProjectIndicators.cs#L34)

Accessible text describing the selected status.

<!-- PowerForge markdown artifact sha256:3C39E77F14D672D64ADA5CC6763E641D079D56F52EE2A40E9281364F8C17BC90 -->
