# OdfViewBox

A positive integer-sized local coordinate canvas for native ODF paths and polygons.

Struct 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfViewBox.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L7)

**Base**

`ValueType`

**Modifiers**

sealed

A positive integer-sized local coordinate canvas for native ODF paths and polygons.

## Inheritance

- ValueType
- OdfViewBox

## 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 1

- Property [OdgShape.ViewBox](/api/open-document/officeimo-opendocument-odgshape/#property-viewbox)

### Accepted by parameters 4

- Constructor [OdfMarkerGeometry.OdfMarkerGeometry](/api/open-document/officeimo-opendocument-odfmarkergeometry/#constructor-ctor-officeimo-opendocument-odfviewbox-string) parameter `viewBox`
- Method [OdgShapes.AddPath](/api/open-document/officeimo-opendocument-odgshapes/#method-addpath-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-string-string) parameter `viewBox`
- Method [OdgShapes.AddPolygon](/api/open-document/officeimo-opendocument-odgshapes/#method-addpolygon-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-collections-generic-ienumerable-officeimo-drawing-officepoint-string) parameter `viewBox`
- Method [OdgShapes.AddPolyline](/api/open-document/officeimo-opendocument-odgshapes/#method-addpolyline-officeimo-opendocument-odfrect-officeimo-opendocument-odfviewbox-collections-generic-ienumerable-officeimo-drawing-officepoint-string) parameter `viewBox`

Filter members 

Show inherited

## Constructors

`public OdfViewBox(int x, int y, int width, int height)` [#](#constructor-ctor-int32-int32-int32-int32)

[OdfViewBox.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L7)

Creates a local canvas. Coordinates are unitless; the shape's bounds determine its page size.

Parameters

**x int required**

**y int required**

**width int required**

**height int required**

## Methods

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

[OdfViewBox.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L20)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from ValueType

Returns

`int`

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

Inherited from object

Returns

`Type`

## Properties

`public int X { get; }` [#](#property-x)

[OdfViewBox.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L12)

Local horizontal origin.

`public int Y { get; }` [#](#property-y)

[OdfViewBox.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L14)

Local vertical origin.

`public int Width { get; }` [#](#property-width)

[OdfViewBox.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L16)

Local canvas width.

`public int Height { get; }` [#](#property-height)

[OdfViewBox.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Values/OdfViewBox.cs#L18)

Local canvas height.

<!-- PowerForge markdown artifact sha256:F728A638BF996C1E958A9DC98775493AE5DB76B1F217DD09096CB378B7AE4B8E -->
