# PdfSelectionQuad

A four-corner selection or hit-test region in visual top-left page coordinates.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfSelectionQuad.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L49)

**Modifiers**

sealed

A four-corner selection or hit-test region in visual top-left page coordinates.

## Inheritance

- object
- PdfSelectionQuad

## Remarks

Visual coordinates are numeric physical points (1/72 inch), with a top-left origin after crop, rotation and /UserUnit scaling. Use the page coordinate mapping methods when calling native read/edit APIs.

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

- Method [PdfLogicalPage.MapUserSpaceRectangleToVisual](/api/pdf/officeimo-pdf-pdflogicalpage/#method-mapuserspacerectangletovisual-double-double-double-double)
- Property [PdfPageInteractionRegion.Quad](/api/pdf/officeimo-pdf-pdfpageinteractionregion/#property-quad)
- Method [PdfPageLayoutInfo.MapUserSpaceRectangleToVisual](/api/pdf/officeimo-pdf-pdfpagelayoutinfo/#method-mapuserspacerectangletovisual-double-double-double-double)
- Property [PdfTextMatch.VisualBounds](/api/pdf/officeimo-pdf-pdftextmatch/#property-visualbounds)
- Property [PdfTextMatch.VisualLineBounds](/api/pdf/officeimo-pdf-pdftextmatch/#property-visuallinebounds)

Filter members 

Show inherited

## Methods

`public bool Contains(double x, double y, double tolerance = 0)` [#](#method-contains-double-double-double)

[PdfSelectionQuad.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L49)

Returns true when the point lies inside this quad, with optional tolerance in points.

Parameters

**x double required**

**y double required**

**tolerance double = 0 optional**

Returns

`bool`

## 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 PdfSelectionPoint TopLeft { get; }` [#](#property-topleft)

[PdfSelectionQuad.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L18)

Top-left corner.

`public PdfSelectionPoint TopRight { get; }` [#](#property-topright)

[PdfSelectionQuad.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L21)

Top-right corner.

`public PdfSelectionPoint BottomRight { get; }` [#](#property-bottomright)

[PdfSelectionQuad.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L24)

Bottom-right corner.

`public PdfSelectionPoint BottomLeft { get; }` [#](#property-bottomleft)

[PdfSelectionQuad.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L27)

Bottom-left corner.

`public double Left { get; }` [#](#property-left)

[PdfSelectionQuad.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L30)

Smallest horizontal coordinate.

`public double Top { get; }` [#](#property-top)

[PdfSelectionQuad.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L33)

Smallest vertical coordinate.

`public double Right { get; }` [#](#property-right)

[PdfSelectionQuad.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L36)

Largest horizontal coordinate.

`public double Bottom { get; }` [#](#property-bottom)

[PdfSelectionQuad.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L39)

Largest vertical coordinate.

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

[PdfSelectionQuad.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L42)

Axis-aligned bounding width.

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

[PdfSelectionQuad.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Interaction/PdfSelectionQuad.cs#L45)

Axis-aligned bounding height.

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