Class

# ReportRectangleShape

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

An rectangle in a report created with the `Report Layout Editor</getting_started/using_the_ide/report_layout_editor>`.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                            | Type                                     | Read-Only | Shared |
|-------------------------------------------------|------------------------------------------|-----------|--------|
| `Border<reportrectangleshape.border>`           | `Double</api/data_types/double>`         |           |        |
| `BorderColor<reportrectangleshape.bordercolor>` | `Color</api/data_types/color>`           |           |        |
| `BorderWidth<reportrectangleshape.borderwidth>` | `Integer</api/data_types/integer>`       |           |        |
| `DataField<reportrectangleshape.datafield>`     | `String</api/data_types/string>`         |           |        |
| `Fill<reportrectangleshape.fill>`               | `Double</api/data_types/double>`         |           |        |
| `FillColor<reportrectangleshape.fillcolor>`     | `Color</api/data_types/color>`           |           |        |
| `Height<reportrectangleshape.height>`           | `Double</api/data_types/double>`         |           |        |
| `Left<reportrectangleshape.left>`               | `Double</api/data_types/double>`         |           |        |
| `Name<reportrectangleshape.name>`               | `String</api/data_types/string>`         | ✓         |        |
| `PenHeight<reportrectangleshape.penheight>`     | `Integer</api/data_types/integer>`       |           |        |
| `PenWidth<reportrectangleshape.penwidth>`       | `Integer</api/data_types/integer>`       |           |        |
| `Report<reportrectangleshape.report>`           | `Report</api/printing/reporting/report>` |           |        |
| `Tag<reportrectangleshape.tag>`                 | `Variant</api/data_types/variant>`       |           |        |
| `Top<reportrectangleshape.top>`                 | `Double</api/data_types/double>`         |           |        |
| `Visible<reportrectangleshape.visible>`         | `Boolean</api/data_types/boolean>`       |           |        |
| `Width<reportrectangleshape.width>`             | `Double</api/data_types/double>`         |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                            | Parameters                                      | Returns                          | Shared |
|-------------------------------------------------|-------------------------------------------------|----------------------------------|--------|
| `Constructor<reportrectangleshape.constructor>` | controlName As `String</api/data_types/string>` |                                  |        |
| `ControlType<reportrectangleshape.controltype>` |                                                 | `String</api/data_types/string>` |        |

## Events

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                  | Parameters | Returns |
|-------------------------------------------------------|------------|---------|
| `AfterPrinting<reportrectangleshape.afterprinting>`   |            |         |
| `BeforePrinting<reportrectangleshape.beforeprinting>` |            |         |

## Enumerations

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.LineStyles

### LineStyles

> | Name            |
> |-----------------|
> | Solid = 0       |
> | Transparent = 1 |
> | Dot = 2         |
> | Dash = 3        |

## Property descriptions

<div id="reportrectangleshape.border">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Border

**Border** As `Double</api/data_types/double>`

> The opacity level of the border.

<div id="reportrectangleshape.bordercolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.BorderColor

**BorderColor** As `Color</api/data_types/color>`

> The color of the object's border.

<div id="reportrectangleshape.borderwidth">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.BorderWidth

**BorderWidth** As `Integer</api/data_types/integer>`

> The width of the border, in points. The default is 1.

<div id="reportrectangleshape.datafield">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.DataField

**DataField** As `String</api/data_types/string>`

> The name of the field from the data source to bind to the control.

<div id="reportrectangleshape.fill">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Fill

**Fill** As `Double</api/data_types/double>`

> The opacity of the interior, from 0 (completely transparent) to 100 (opaque).

<div id="reportrectangleshape.fillcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.FillColor

**FillColor** As `Color</api/data_types/color>`

> The color of the interior of the shape.

<div id="reportrectangleshape.height">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Height

**Height** As `Double</api/data_types/double>`

> The height of the control in `Units<reports.units>`. Height is relative to the section the control is in.

<div id="reportrectangleshape.left">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Left

**Left** As `Double</api/data_types/double>`

> The left side of the control in `Units<reports.units>`. Left is relative to the section the control is in.

<div id="reportrectangleshape.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Name

**Name** As `String</api/data_types/string>`

> The name of the object.
>
> This property is read-only.

<div id="reportrectangleshape.penheight">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.PenHeight

**PenHeight** As `Integer</api/data_types/integer>`

> The height in pixels used when drawing.

<div id="reportrectangleshape.penwidth">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.PenWidth

**PenWidth** As `Integer</api/data_types/integer>`

> The height in pixels used when drawing.

<div id="reportrectangleshape.report">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Report

**Report** As `Report</api/printing/reporting/report>`

> The report to which the object belongs.

<div id="reportrectangleshape.tag">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Tag

**Tag** As `Variant</api/data_types/variant>`

> A value that can be associated with the shape.

<div id="reportrectangleshape.top">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Top

**Top** As `Double</api/data_types/double>`

> The top of the control in `Units<reports.units>`. Top is relative to the section the control is in.

<div id="reportrectangleshape.visible">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Visible

**Visible** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the control is visible. The default is `True</api/language/true>`.

<div id="reportrectangleshape.width">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Width

**Width** As `Double</api/data_types/double>`

> The width of the control in `Units<reports.units>`. Width is relative to the section the control is in.

## Method descriptions

<div id="reportrectangleshape.constructor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.Constructor

**Constructor**(controlName As `String</api/data_types/string>`)

> Creates a new <span class="title-ref">ReportRectangleShape</span> with the name passed.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> `Constructors</api/language/constructor>` are special methods called when you create an Object With the `New</api/language/New>` keyword And pass In the parameters above.
>
> </div>

<div id="reportrectangleshape.controltype">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.ControlType

**ControlType** As `String</api/data_types/string>`

> Returns the type of the control.

## Event descriptions

<div id="reportrectangleshape.afterprinting">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.AfterPrinting

**AfterPrinting**

> The shape has just been printed.

<div id="reportrectangleshape.beforeprinting">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

ReportRectangleShape.BeforePrinting

**BeforePrinting**

> The shape is about to be printed.

## Compatibility

|                       |         |
|-----------------------|---------|
| **Project Types**     | Desktop |
| **Operating Systems** | All     |

<div class="seealso">

`RBReportControl</api/printing/reporting/rbreportcontrol>` parent class; `Reports Module</api/printing/reporting/reports_module>` module; `RBReportDocument</api/printing/reporting/rbreportdocument>`, `Report</api/printing/reporting/report>`, `ReportField</api/printing/reporting/reportfield>`, `ReportLabel</api/printing/reporting/reportlabel>`, `ReportLineShape</api/printing/reporting/reportlineshape>`, `ReportOvalShape</api/printing/reporting/reportovalshape>`, `ReportRoundRetangleShape</api/printing/reporting/reportroundrectangleshape>`. `ReportPicture</api/printing/reporting/reportpicture>` classes.

</div>
