# LabelObstacle

An occupied mark rectangle that labels must avoid.

 Struct  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

[LabelPlacement.cs:96](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/LabelPlacement.cs#L96)

**Base**

`ValueType`

**Modifiers**

sealed

An occupied mark rectangle that labels must avoid.

## Inheritance

- ValueType
- LabelObstacle

## Usage

 Explore 1 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.

### Accepted by parameters 1

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

 Filter members   

    Show inherited   

 

## Constructors

 `public LabelObstacle(string id, ChartRect bounds)` [#](#constructor-ctor-string-chartforgex-primitives-chartrect) 

[LabelPlacement.cs:96](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/LabelPlacement.cs#L96)

Creates a mark obstacle with a stable identity.

Parameters

**id string required**

**bounds ChartForgeX.Primitives.ChartRect required**

## 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 string Id { get; }` [#](#property-id) 

[LabelPlacement.cs:100](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/LabelPlacement.cs#L100)

Gets the mark identity.

 `public ChartRect Bounds { get; }` [#](#property-bounds) 

[LabelPlacement.cs:102](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/LabelPlacement.cs#L102)

Gets its bounds in logical pixels.

<!-- PowerForge markdown artifact sha256:868EE8785CD7DD14723181411A498387E84952DD80D5C98CBF6B38E9D5BB1573 -->
