# ChartRect

Defines a rectangular region in chart pixel space.

 Struct  

`ChartForgeX.Primitives`

**Namespace**

`ChartForgeX.Primitives`

**Assembly**

`ChartForgeX`

**Source**

[ChartRect.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L35)

**Base**

`ValueType`

**Modifiers**

sealed

Defines a rectangular region in chart pixel space.

## Inheritance

- ValueType
- ChartRect

## Usage

 Explore 48 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 35

- Method [VisualCanvas.ResolvePlacement](/api/chartforgex-composition-visualcanvas/#method-resolveplacement-chartforgex-composition-visualcanvasplacement-double-double)
- Property [VisualCanvasFeatureStripLayer.Bounds](/api/chartforgex-composition-visualcanvasfeaturestriplayer/#property-bounds)
- Property [VisualCanvasHeroBadgeLayer.Bounds](/api/chartforgex-composition-visualcanvasherobadgelayer/#property-bounds)
- Property [VisualCanvasHeroTitleLayer.Bounds](/api/chartforgex-composition-visualcanvasherotitlelayer/#property-bounds)
- Property [VisualCanvasImageLayer.Bounds](/api/chartforgex-composition-visualcanvasimagelayer/#property-bounds)
- Property [VisualCanvasInfoTileLayer.Bounds](/api/chartforgex-composition-visualcanvasinfotilelayer/#property-bounds)
- Property [VisualCanvasKeyValueBlockLayer.Bounds](/api/chartforgex-composition-visualcanvaskeyvalueblocklayer/#property-bounds)
- Property [VisualCanvasLayer.Bounds](/api/chartforgex-composition-visualcanvaslayer/#property-bounds)
- Property [VisualCanvasLayoutDiagnostic.Bounds](/api/chartforgex-composition-visualcanvaslayoutdiagnostic/#property-bounds)
- Method [VisualCanvasPlacement.Resolve](/api/chartforgex-composition-visualcanvasplacement/#method-resolve-double-double-double-double)
- Property [VisualCanvasTextLayer.Bounds](/api/chartforgex-composition-visualcanvastextlayer/#property-bounds)
- Property [ChartMapDefinition.Bounds](/api/chartforgex-core-chartmapdefinition/#property-bounds)
- Property [ChartMapOptions.RegionBounds](/api/chartforgex-core-chartmapoptions/#property-regionbounds)
- Property [ChartPictorialOptions.SvgPathViewBox](/api/chartforgex-core-chartpictorialoptions/#property-svgpathviewbox)
- Property [ChartSeries.MapInset](/api/chartforgex-core-chartseries/#property-mapinset)
- Property [VisualDropShadow.RelativeRegion](/api/chartforgex-effects-visualdropshadow/#property-relativeregion)
- Property [VisualMask.Bounds](/api/chartforgex-effects-visualmask/#property-bounds)
- Property [CapturedVisualLayer.Bounds](/api/chartforgex-rendering-capturedvisuallayer/#property-bounds)
- Property [CapturedVisualLayer.SourceBounds](/api/chartforgex-rendering-capturedvisuallayer/#property-sourcebounds)
- Property [ChartAxisProjection.PlotBounds](/api/chartforgex-rendering-chartaxisprojection/#property-plotbounds)
- Property [LabelObstacle.Bounds](/api/chartforgex-rendering-labelobstacle/#property-bounds)
- Property [LabelPlacementRequest.Bounds](/api/chartforgex-rendering-labelplacementrequest/#property-bounds)
- Property [PlacedLabel.Bounds](/api/chartforgex-rendering-placedlabel/#property-bounds)
- Property [PreparedChartXZoom.PlotBounds](/api/chartforgex-rendering-preparedchartxzoom/#property-plotbounds)
- Property [VisualSemanticRegion.Bounds](/api/chartforgex-rendering-visualsemanticregion/#property-bounds)
- Property [TopologyLayoutBoundsDiagnostic.Bounds](/api/chartforgex-topology-topologylayoutboundsdiagnostic/#property-bounds)
- Property [TopologyLayoutCollisionDiagnostic.Bounds](/api/chartforgex-topology-topologylayoutcollisiondiagnostic/#property-bounds)
- Property [TopologyLayoutEdgeLabelDiagnostic.Bounds](/api/chartforgex-topology-topologylayoutedgelabeldiagnostic/#property-bounds)
- Property [TopologyLayoutGroupDiagnostic.Bounds](/api/chartforgex-topology-topologylayoutgroupdiagnostic/#property-bounds)
- Property [TopologyLayoutGroupDiagnostic.HeaderBounds](/api/chartforgex-topology-topologylayoutgroupdiagnostic/#property-headerbounds)
- Property [TopologyLayoutNodeDiagnostic.Bounds](/api/chartforgex-topology-topologylayoutnodediagnostic/#property-bounds)
- Property [TopologyLayoutNodeDiagnostic.CaptionBounds](/api/chartforgex-topology-topologylayoutnodediagnostic/#property-captionbounds)
- Property [VisualArtifactInterchangeCaptureFrame.Bounds](/api/chartforgex-visualartifacts-visualartifactinterchangecaptureframe/#property-bounds)
- Property [VisualArtifactInterchangeEdge.ResolvedLabelBounds](/api/chartforgex-visualartifacts-visualartifactinterchangeedge/#property-resolvedlabelbounds)
- Property [VisualArtifactRegion.Bounds](/api/chartforgex-visualartifacts-visualartifactregion/#property-bounds)

### Accepted by parameters 13

- Method [VisualCanvasPlacement.Resolve](/api/chartforgex-composition-visualcanvasplacement/#method-resolve-chartforgex-primitives-chartrect-double-double) parameter `container`
- Constructor [ChartMapDefinition.ChartMapDefinition](/api/chartforgex-core-chartmapdefinition/#constructor-ctor-string-string-chartforgex-primitives-chartrect-collections-generic-ienumerable-chartforgex-core-chartmapregion) parameter `bounds`
- Extension method [ChartMapOptions.RegionBounds](/api/chartforgex-core-chartmapoptions/#extension-regionbounds-chartforgex-core-chartmapoptions-nullable-chartforgex-primitives-chartrect) parameter `value`
- Method [ChartMapOptionsFluent.RegionBounds](/api/chartforgex-core-chartmapoptionsfluent/#method-regionbounds-chartforgex-core-chartmapoptions-nullable-chartforgex-primitives-chartrect) parameter `value`
- Extension method [ChartPictorialOptions.SvgPathViewBox](/api/chartforgex-core-chartpictorialoptions/#extension-svgpathviewbox-chartforgex-core-chartpictorialoptions-chartforgex-primitives-chartrect) parameter `value`
- Method [ChartPictorialOptions.SvgPath](/api/chartforgex-core-chartpictorialoptions/#method-svgpath-string-chartforgex-primitives-chartrect) parameter `viewBox`
- Method [ChartPictorialOptionsFluent.SvgPathViewBox](/api/chartforgex-core-chartpictorialoptionsfluent/#method-svgpathviewbox-chartforgex-core-chartpictorialoptions-chartforgex-primitives-chartrect) parameter `value`
- Extension method [ChartSeries.MapInset](/api/chartforgex-core-chartseries/#extension-mapinset-chartforgex-core-chartseries-nullable-chartforgex-primitives-chartrect) parameter `bounds`
- Method [ChartSeriesFluent.MapInset](/api/chartforgex-core-chartseriesfluent/#method-mapinset-chartforgex-core-chartseries-nullable-chartforgex-primitives-chartrect) parameter `bounds`
- Constructor [VisualDropShadow.VisualDropShadow](/api/chartforgex-effects-visualdropshadow/#constructor-ctor-chartforgex-primitives-chartcolor-int32-int32-double-nullable-system-double-int32-boolean-double-nullable-chartforgex-primitives-chartrect) parameter `relativeRegion`
- Constructor [LabelObstacle.LabelObstacle](/api/chartforgex-rendering-labelobstacle/#constructor-ctor-string-chartforgex-primitives-chartrect) parameter `bounds`
- Method [LabelPlacementService.Place](/api/chartforgex-rendering-labelplacementservice/#method-place-collections-generic-ireadonlylist-chartforgex-rendering-labelplacementrequest-chartforgex-primitives-chartrect-collections-generic-ireadonlylist-chartforgex-rendering-labelobstacle-double) parameter `bounds`
- Constructor [VisualSemanticRegion.VisualSemanticRegion](/api/chartforgex-rendering-visualsemanticregion/#constructor-ctor-string-string-chartforgex-primitives-chartrect-string) parameter `bounds`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartRect(double x, double y, double width, double height)` [#](#constructor-ctor-double-double-double-double) 

[ChartRect.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L35)

Initializes a new instance of the [ChartRect](/api/chartforgex-primitives-chartrect/) struct.

Parameters

**x double required**

The left coordinate.

**y double required**

The top coordinate.

**width double required**

The width in pixels.

**height double required**

The height in pixels.

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

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

Inherited from ValueType

Returns

 `string?` 

## Properties

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

[ChartRect.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L48)

Gets the left edge.

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

[ChartRect.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L53)

Gets the right edge.

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

[ChartRect.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L58)

Gets the top edge.

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

[ChartRect.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L63)

Gets the bottom edge.

## Fields

 `public readonly double X` [#](#field-x) 

[ChartRect.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L10)

Gets the left coordinate.

 `public readonly double Y` [#](#field-y) 

[ChartRect.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L15)

Gets the top coordinate.

 `public readonly double Width` [#](#field-width) 

[ChartRect.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L20)

Gets the width in pixels.

 `public readonly double Height` [#](#field-height) 

[ChartRect.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Primitives/ChartRect.cs#L25)

Gets the height in pixels.

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