3.25.0 (latest) 3.24.0 3.23.0 3.22.0 3.21.0 3.20.0 3.19.0 3.18.0 3.17.0 3.16.0 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Document.Types.PageAnchor.Types.PageRef : IMessage<Document.Types.PageAnchor.Types.PageRef>, IEquatable<Document.Types.PageAnchor.Types.PageRef>, IDeepCloneable<Document.Types.PageAnchor.Types.PageRef>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.PageAnchor.Types.PageRef.

Represents a weak reference to a page element within a document.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Document.Types.PageAnchor.Types.PageRef

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[PageAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.md.txt)[PageRef](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.PageRef.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[PageAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.md.txt)[PageRef](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.PageRef.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.md.txt)[PageAnchor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.md.txt)[PageRef](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.Document.Types.PageAnchor.Types.PageRef.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DocumentAI.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DocumentAI.V1/latest/Google.Cloud.DocumentAI.V1.md.txt)

## Assembly

Google.Cloud.DocumentAI.V1.dll

## Constructors

### PageRef()

    public PageRef()

### PageRef(PageRef)

    public PageRef(Document.Types.PageAnchor.Types.PageRef other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DocumentTypesPageAnchorTypesPageRef` |

## Properties

### BoundingPoly

    public BoundingPoly BoundingPoly { get; set; }

Optional. Identifies the bounding polygon of a layout element on the
page. If `layout_type` is set, the bounding polygon must be exactly the
same to the layout element it's referring to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `BoundingPoly` |   |

### Confidence

    public float Confidence { get; set; }

Optional. Confidence of detected page element, if applicable. Range
`[0, 1]`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### LayoutId

    [Obsolete]
    public string LayoutId { get; set; }

Optional. Deprecated. Use
\[PageRef.bounding_poly\]\[google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly\]
instead.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LayoutType

    public Document.Types.PageAnchor.Types.PageRef.Types.LayoutType LayoutType { get; set; }

Optional. The type of the layout element that is being referenced if
any.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DocumentTypesPageAnchorTypesPageRefTypesLayoutType` |   |

### Page

    public long Page { get; set; }

Required. Index into the
\[Document.pages\]\[google.cloud.documentai.v1.Document.pages\] element,
for example using
`[Document.pages][page_refs.page]` to locate the related page element.
This field is skipped when its value is the default `0`. See
<https://developers.google.com/protocol-buffers/docs/proto3#json>.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |