# OfficeBarcodeOptions

Size, appearance and accessibility of a QR code or barcode placed by the OfficeIMO CodeGlyphX adapters.

Class 

`OfficeIMO.CodeGlyphX`

**Namespace**

`OfficeIMO.CodeGlyphX`

**Assembly**

`OfficeIMO.CodeGlyphX`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[OfficeBarcodeOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L27)

**Modifiers**

sealed

Size, appearance and accessibility of a QR code or barcode placed by the OfficeIMO CodeGlyphX adapters. Every property is optional; the defaults produce a scannable symbol at a sensible document size.

## Inheritance

- object
- OfficeBarcodeOptions

Filter members 

Show inherited

## Constructors

`public OfficeBarcodeOptions()` [#](#constructor-ctor)

[OfficeBarcodeOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L27)

## 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 OfficeLength? Width { get; set; }` [#](#property-width)

[OfficeBarcodeOptions.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L15)

Width of the whole symbol, including its quiet zone. Two-dimensional codes default to 1.25 inches; linear, stacked and postal codes default to 0.33 mm per module. With only a width, the symbol keeps its proportions.

`public OfficeLength? Height { get; set; }` [#](#property-height)

[OfficeBarcodeOptions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L21)

Height of the whole symbol, including any human-readable text. Linear barcodes adjust their bar height to it; other symbols keep their proportions and fit inside [OfficeBarcodeOptions.Width](/api/code-glyph-x/officeimo-codeglyphx-officebarcodeoptions/) and [OfficeBarcodeOptions.Height](/api/code-glyph-x/officeimo-codeglyphx-officebarcodeoptions/).

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

[OfficeBarcodeOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L24)

Light margin around the symbol in modules. Defaults to 4 for two-dimensional codes and 10 for linear barcodes.

`public OfficeColor Color { get; set; }` [#](#property-color)

[OfficeBarcodeOptions.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L27)

Color of the bars or dark modules. Use a literal, opaque color.

`public OfficeColor BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[OfficeBarcodeOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L30)

Color of the background and quiet zone. Use a literal, opaque color.

`public QrErrorCorrectionLevel? ErrorCorrection { get; set; }` [#](#property-errorcorrection)

[OfficeBarcodeOptions.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L33)

QR error correction level. Applies to QR codes only; CodeGlyphX chooses the level when this is not set.

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

[OfficeBarcodeOptions.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L39)

Whether a linear barcode prints its human-readable text under the bars. Linear barcodes show it by default; other symbologies do not support it.

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

[OfficeBarcodeOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.CodeGlyphX/OfficeBarcodeOptions.cs#L45)

Accessible description of the symbol. Defaults to the symbology and its payload, for example QR Code: https://evotec.xyz, so screen readers can announce what the code contains.

<!-- PowerForge markdown artifact sha256:8325FB7F440008C4C6C3A382E97F272D2DC0B578C97DEA636EB1FE8481C4343F -->
