# IWorkNegativeNumberStyle

Supported source treatments of negative numbers.

Enum 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[IWorkNumberFormat.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/IWorkNumberFormat.cs#L62)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Supported source treatments of negative numbers.

## Inheritance

- Enum
- IWorkNegativeNumberStyle

## Usage

Explore 7 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 5

- Field [IWorkNegativeNumberStyle.Minus](/api/iwork/officeimo-iwork-iworknegativenumberstyle/#field-minus)
- Field [IWorkNegativeNumberStyle.Parentheses](/api/iwork/officeimo-iwork-iworknegativenumberstyle/#field-parentheses)
- Field [IWorkNegativeNumberStyle.Red](/api/iwork/officeimo-iwork-iworknegativenumberstyle/#field-red)
- Field [IWorkNegativeNumberStyle.RedAndParentheses](/api/iwork/officeimo-iwork-iworknegativenumberstyle/#field-redandparentheses)
- Property [IWorkNumberFormat.NegativeStyle](/api/iwork/officeimo-iwork-iworknumberformat/#property-negativestyle)

### Accepted by parameters 2

- Method [IWorkNumberFormat.CreateNumber](/api/iwork/officeimo-iwork-iworknumberformat/#method-createnumber-int32-boolean-officeimo-iwork-iworknegativenumberstyle) parameter `negativeStyle`
- Method [IWorkNumberFormat.CreatePercentage](/api/iwork/officeimo-iwork-iworknumberformat/#method-createpercentage-int32-boolean-officeimo-iwork-iworknegativenumberstyle) parameter `negativeStyle`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const IWorkNegativeNumberStyle Minus` [#](#field-minus)

[IWorkNumberFormat.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/IWorkNumberFormat.cs#L64)

A minus sign.

Value: `0`

`public const IWorkNegativeNumberStyle Red` [#](#field-red)

[IWorkNumberFormat.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/IWorkNumberFormat.cs#L66)

Red text without a minus sign.

Value: `1`

`public const IWorkNegativeNumberStyle Parentheses` [#](#field-parentheses)

[IWorkNumberFormat.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/IWorkNumberFormat.cs#L68)

Parentheses.

Value: `2`

`public const IWorkNegativeNumberStyle RedAndParentheses` [#](#field-redandparentheses)

[IWorkNumberFormat.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.IWork/IWorkNumberFormat.cs#L70)

Red text with parentheses.

Value: `3`

<!-- PowerForge markdown artifact sha256:5395AD8FD0632DADFA1A8275FA93F7853CA0F3A8DA195E99F391A36D3B61078F -->
