# OfficeFillRule

Fill rule used for multi-contour vector paths and clipping paths.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFillRule.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFillRule.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Fill rule used for multi-contour vector paths and clipping paths.

## Inheritance

- Enum
- OfficeFillRule

## Usage

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

- Property [OfficeClipPath.FillRule](/api/core/officeimo-drawing-officeclippath/#property-fillrule)
- Field [OfficeFillRule.EvenOdd](/api/core/officeimo-drawing-officefillrule/#field-evenodd)
- Field [OfficeFillRule.NonZero](/api/core/officeimo-drawing-officefillrule/#field-nonzero)
- Property [OfficeShape.FillRule](/api/core/officeimo-drawing-officeshape/#property-fillrule)

### Accepted by parameters 1

- Method [OfficeClipPath.Path](/api/core/officeimo-drawing-officeclippath/#method-path-collections-generic-ienumerable-officeimo-drawing-officepathcommand-officeimo-drawing-officefillrule) parameter `fillRule`

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 OfficeFillRule EvenOdd` [#](#field-evenodd)

[OfficeFillRule.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFillRule.cs#L8)

Fill areas where a ray crosses an odd number of path contours.

Value: `0`

`public const OfficeFillRule NonZero` [#](#field-nonzero)

[OfficeFillRule.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFillRule.cs#L11)

Fill areas where the signed winding number is non-zero.

Value: `1`

<!-- PowerForge markdown artifact sha256:4DE9307D6FC6092EE72193B2A064DB5B508F4DFA527DF54DA3866616B36E8024 -->
