# OfficePoint

Dependency-free two-dimensional point used by shared drawing descriptors. Coordinates are expressed in the caller's layout unit.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficePoint.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L16)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficePoint>`

**Modifiers**

sealed

Dependency-free two-dimensional point used by shared drawing descriptors. Coordinates are expressed in the caller's layout unit.

## Inheritance

- ValueType
- OfficePoint

## Usage

Explore 58 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 20

- Method [IOfficeBoundedFontProgram.GetShapedTextContoursBounded](/api/core/officeimo-drawing-iofficeboundedfontprogram/#method-getshapedtextcontoursbounded-string-officeimo-drawing-officetextshapingresult-double-double-double-int32-threading-cancellationtoken)
- Method [IOfficeBoundedFontProgram.GetTextContoursBounded](/api/core/officeimo-drawing-iofficeboundedfontprogram/#method-gettextcontoursbounded-string-double-double-double-int32-threading-cancellationtoken)
- Method [IOfficeFontProgram.GetShapedTextContours](/api/core/officeimo-drawing-iofficefontprogram/#method-getshapedtextcontours-string-officeimo-drawing-officetextshapingresult-double-double-double)
- Method [IOfficeFontProgram.GetTextContours](/api/core/officeimo-drawing-iofficefontprogram/#method-gettextcontours-string-double-double-double)
- Method [OfficeInkStroke.GetTransformedTipSupport](/api/core/officeimo-drawing-officeinkstroke/#method-gettransformedtipsupport-double-double)
- Property [OfficePathCommand.ControlPoint1](/api/core/officeimo-drawing-officepathcommand/#property-controlpoint1)
- Property [OfficePathCommand.ControlPoint2](/api/core/officeimo-drawing-officepathcommand/#property-controlpoint2)
- Property [OfficePathCommand.Point](/api/core/officeimo-drawing-officepathcommand/#property-point)
- Method [OfficeScanPerspectiveMap.MapProcessedToSource](/api/core/officeimo-drawing-officescanperspectivemap/#method-mapprocessedtosource-officeimo-drawing-officepoint)
- Method [OfficeScanPerspectiveMap.MapSourceToProcessed](/api/core/officeimo-drawing-officescanperspectivemap/#method-mapsourcetoprocessed-officeimo-drawing-officepoint)
- Property [OfficeScanPerspectiveOptions.BottomLeft](/api/core/officeimo-drawing-officescanperspectiveoptions/#property-bottomleft)
- Property [OfficeScanPerspectiveOptions.BottomRight](/api/core/officeimo-drawing-officescanperspectiveoptions/#property-bottomright)
- Property [OfficeScanPerspectiveOptions.TopLeft](/api/core/officeimo-drawing-officescanperspectiveoptions/#property-topleft)
- Property [OfficeScanPerspectiveOptions.TopRight](/api/core/officeimo-drawing-officescanperspectiveoptions/#property-topright)
- Property [OfficeShape.Points](/api/core/officeimo-drawing-officeshape/#property-points)
- Method [OfficeTextBlockBackgroundBounds.GetCorners](/api/core/officeimo-drawing-officetextblockbackgroundbounds/#method-getcorners)
- Method [OfficeTextBlockBackgroundBounds.GetRotatedCorners](/api/core/officeimo-drawing-officetextblockbackgroundbounds/#method-getrotatedcorners-double-double-double)
- Method [OfficeTransform.TransformPoint](/api/core/officeimo-drawing-officetransform/#method-transformpoint-officeimo-drawing-officepoint)
- Method [OfficeTrueTypeFont.GetTextContours](/api/core/officeimo-drawing-officetruetypefont/#method-gettextcontours-string-double-double-double)
- Method [OfficeTrueTypeFont.GetTextContoursBounded](/api/core/officeimo-drawing-officetruetypefont/#method-gettextcontoursbounded-string-double-double-double-int32-threading-cancellationtoken)

### Accepted by parameters 38

- Method [OfficePathCommand.CubicBezierTo](/api/core/officeimo-drawing-officepathcommand/#method-cubicbezierto-officeimo-drawing-officepoint-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `controlPoint1`
- Method [OfficePathCommand.CubicBezierTo](/api/core/officeimo-drawing-officepathcommand/#method-cubicbezierto-officeimo-drawing-officepoint-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `controlPoint2`
- Method [OfficePathCommand.CubicBezierTo](/api/core/officeimo-drawing-officepathcommand/#method-cubicbezierto-officeimo-drawing-officepoint-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `endPoint`
- Method [OfficePathCommand.LineTo](/api/core/officeimo-drawing-officepathcommand/#method-lineto-officeimo-drawing-officepoint) parameter `point`
- Method [OfficePathCommand.MoveTo](/api/core/officeimo-drawing-officepathcommand/#method-moveto-officeimo-drawing-officepoint) parameter `point`
- Method [OfficePathCommand.QuadraticBezierTo](/api/core/officeimo-drawing-officepathcommand/#method-quadraticbezierto-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `controlPoint`
- Method [OfficePathCommand.QuadraticBezierTo](/api/core/officeimo-drawing-officepathcommand/#method-quadraticbezierto-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `endPoint`
- Method [OfficePoint.Equals](/api/core/officeimo-drawing-officepoint/#method-equals-officeimo-drawing-officepoint) parameter `other`
- Method [OfficePoint.op_Equality](/api/core/officeimo-drawing-officepoint/#method-op-equality-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `left`
- Method [OfficePoint.op_Equality](/api/core/officeimo-drawing-officepoint/#method-op-equality-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `right`
- Method [OfficePoint.op_Inequality](/api/core/officeimo-drawing-officepoint/#method-op-inequality-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `left`
- Method [OfficePoint.op_Inequality](/api/core/officeimo-drawing-officepoint/#method-op-inequality-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `right`
- Method [OfficeRasterCanvas.DrawDashedPolyline](/api/core/officeimo-drawing-officerastercanvas/#method-drawdashedpolyline-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double-double-double-boolean) parameter `points`
- Method [OfficeRasterCanvas.DrawPatternedPolyline](/api/core/officeimo-drawing-officerastercanvas/#method-drawpatternedpolyline-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double-collections-generic-ireadonlylist-system-double-boolean-double) parameter `points`
- Method [OfficeRasterCanvas.DrawPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-drawpolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double) parameter `points`
- Method [OfficeRasterCanvas.DrawPolyline](/api/core/officeimo-drawing-officerastercanvas/#method-drawpolyline-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double) parameter `points`
- Method [OfficeRasterCanvas.DrawStyledPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-drawstyledpolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double-officeimo-drawing-officestrokedashstyle-boolean) parameter `points`
- Method [OfficeRasterCanvas.DrawStyledPolyline](/api/core/officeimo-drawing-officerastercanvas/#method-drawstyledpolyline-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor-double-officeimo-drawing-officestrokedashstyle-boolean) parameter `points`
- Method [OfficeRasterCanvas.FillLinearGradientPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-filllineargradientpolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-drawing-officelineargradient) parameter `points`
- Method [OfficeRasterCanvas.FillPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-fillpolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor) parameter `points`
- Method [OfficeRasterCanvas.FillPolygonsEvenOdd](/api/core/officeimo-drawing-officerastercanvas/#method-fillpolygonsevenodd-collections-generic-ireadonlylist-system-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor) parameter `contours`
- Method [OfficeRasterCanvas.FillPolygonsNonZero](/api/core/officeimo-drawing-officerastercanvas/#method-fillpolygonsnonzero-collections-generic-ireadonlylist-system-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-officecolor) parameter `contours`
- Method [OfficeRasterCanvas.FillRadialGradientPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-fillradialgradientpolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint-officeimo-drawing-officeradialgradient) parameter `points`
- Method [OfficeRasterCanvas.PushClipPolygon](/api/core/officeimo-drawing-officerastercanvas/#method-pushclippolygon-collections-generic-ireadonlylist-officeimo-drawing-officepoint) parameter `points`
- Method [OfficeRasterCanvas.PushClipPolygonsEvenOdd](/api/core/officeimo-drawing-officerastercanvas/#method-pushclippolygonsevenodd-collections-generic-ireadonlylist-system-collections-generic-ireadonlylist-officeimo-drawing-officepoint) parameter `contours`
- Method [OfficeRasterCanvas.PushClipPolygonsNonZero](/api/core/officeimo-drawing-officerastercanvas/#method-pushclippolygonsnonzero-collections-generic-ireadonlylist-system-collections-generic-ireadonlylist-officeimo-drawing-officepoint) parameter `contours`
- Method [OfficeRasterTransforms.MaskPolygon](/api/core/officeimo-drawing-officerastertransforms/#method-maskpolygon-officeimo-drawing-officerasterimage-collections-generic-ireadonlylist-officeimo-drawing-officepoint-threading-cancellationtoken) parameter `points`
- Method [OfficeScanPerspectiveMap.MapProcessedToSource](/api/core/officeimo-drawing-officescanperspectivemap/#method-mapprocessedtosource-officeimo-drawing-officepoint) parameter `point`
- Method [OfficeScanPerspectiveMap.MapSourceToProcessed](/api/core/officeimo-drawing-officescanperspectivemap/#method-mapsourcetoprocessed-officeimo-drawing-officepoint) parameter `point`
- Method [OfficeShape.Line](/api/core/officeimo-drawing-officeshape/#method-line-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `end`
- Method [OfficeShape.Line](/api/core/officeimo-drawing-officeshape/#method-line-officeimo-drawing-officepoint-officeimo-drawing-officepoint) parameter `start`
- Method [OfficeShape.Polygon](/api/core/officeimo-drawing-officeshape/#method-polygon-officeimo-drawing-officepoint) parameter `points`
- Method [OfficeSvgFormatting.AppendMoveLinePathData](/api/core/officeimo-drawing-officesvgformatting/#method-appendmovelinepathdata-text-stringbuilder-collections-generic-ireadonlylist-officeimo-drawing-officepoint-boolean) parameter `points`
- Method [OfficeSvgFormatting.AppendPointsAttribute](/api/core/officeimo-drawing-officesvgformatting/#method-appendpointsattribute-text-stringbuilder-collections-generic-ireadonlylist-officeimo-drawing-officepoint) parameter `points`
- Method [OfficeSvgFormatting.AppendPolygonElement](/api/core/officeimo-drawing-officesvgformatting/#method-appendpolygonelement-text-stringbuilder-collections-generic-ireadonlylist-officeimo-drawing-officepoint-string) parameter `points`
- Method [OfficeSvgFormatting.AppendPolylineElement](/api/core/officeimo-drawing-officesvgformatting/#method-appendpolylineelement-text-stringbuilder-collections-generic-ireadonlylist-officeimo-drawing-officepoint-string) parameter `points`
- Method [OfficeSvgFormatting.FormatMoveLinePathData](/api/core/officeimo-drawing-officesvgformatting/#method-formatmovelinepathdata-collections-generic-ireadonlylist-officeimo-drawing-officepoint-boolean) parameter `points`
- Method [OfficeTransform.TransformPoint](/api/core/officeimo-drawing-officetransform/#method-transformpoint-officeimo-drawing-officepoint) parameter `point`

Filter members 

Show inherited

## Constructors

`public OfficePoint(double x, double y)` [#](#constructor-ctor-double-double)

[OfficePoint.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L16)

Creates a point.

Parameters

**x double required**

**y double required**

## Methods

Equals 2 overloads

`public bool Equals(OfficePoint other)` [#](#method-equals-officeimo-drawing-officepoint)

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

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

Parameters

**other OfficeIMO.Drawing.OfficePoint 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)

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

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)

[OfficePoint.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L29)

Returns the hash code for this instance.

Returns

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

`public static bool op_Equality(OfficePoint left, OfficePoint right)` [#](#method-op-equality-officeimo-drawing-officepoint-officeimo-drawing-officepoint)

[OfficePoint.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L34)

Compares two points for equality.

Parameters

**left OfficeIMO.Drawing.OfficePoint required**

**right OfficeIMO.Drawing.OfficePoint required**

Returns

`bool`

`public static bool op_Inequality(OfficePoint left, OfficePoint right)` [#](#method-op-inequality-officeimo-drawing-officepoint-officeimo-drawing-officepoint)

[OfficePoint.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L37)

Compares two points for inequality.

Parameters

**left OfficeIMO.Drawing.OfficePoint required**

**right OfficeIMO.Drawing.OfficePoint required**

Returns

`bool`

## 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 double X { get; }` [#](#property-x)

[OfficePoint.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L9)

Horizontal coordinate.

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

[OfficePoint.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficePoint.cs#L12)

Vertical coordinate.

<!-- PowerForge markdown artifact sha256:84CA0A09DAA1FBFB3A309A14F3AFE765B6F7DD032EC1C1236804ACE3392DBEA0 -->
