# OfficeFontUnicodeRange

Inclusive Unicode scalar range used to constrain a scoped font face.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFontUnicodeRange.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L7)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficeFontUnicodeRange>`

**Modifiers**

sealed

Inclusive Unicode scalar range used to constrain a scoped font face.

## Inheritance

- ValueType
- OfficeFontUnicodeRange

## 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 [OfficeFontUnicodeRangeSet.Ranges](/api/core/officeimo-drawing-officefontunicoderangeset/#property-ranges)

### Accepted by parameters 2

- Method [OfficeFontUnicodeRange.Equals](/api/core/officeimo-drawing-officefontunicoderange/#method-equals-officeimo-drawing-officefontunicoderange) parameter `other`
- Constructor [OfficeFontUnicodeRangeSet.OfficeFontUnicodeRangeSet](/api/core/officeimo-drawing-officefontunicoderangeset/#constructor-ctor-collections-generic-ienumerable-officeimo-drawing-officefontunicoderange) parameter `ranges`

Filter members 

Show inherited

## Constructors

`public OfficeFontUnicodeRange(int start, int end)` [#](#constructor-ctor-int32-int32)

[OfficeFontUnicodeRange.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L7)

Creates an inclusive Unicode scalar range.

Parameters

**start int required**

**end int required**

## Methods

`public bool Contains(int scalar)` [#](#method-contains-int32)

[OfficeFontUnicodeRange.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L21)

Returns true when the scalar is in this range.

Parameters

**scalar int required**

Returns

`bool`

Equals 2 overloads

`public bool Equals(OfficeFontUnicodeRange other)` [#](#method-equals-officeimo-drawing-officefontunicoderange)

[OfficeFontUnicodeRange.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L24)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Drawing.OfficeFontUnicodeRange required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

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

[OfficeFontUnicodeRange.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L27)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

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

[OfficeFontUnicodeRange.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L30)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

## Inherited Methods

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public int Start { get; }` [#](#property-start)

[OfficeFontUnicodeRange.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L15)

First included Unicode scalar.

`public int End { get; }` [#](#property-end)

[OfficeFontUnicodeRange.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontUnicodeRange.cs#L18)

Last included Unicode scalar.

<!-- PowerForge markdown artifact sha256:2BD9DB532C62E5540908300AD4F866E800D547F6E7A2D1C1F1991E6031E64730 -->
