# LabelPlacementRequest

A measured label with an anchor, priority and ordered candidate positions.

 Class  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

sealed

A measured label with an anchor, priority and ordered candidate positions.

## Inheritance

- object
- LabelPlacementRequest

## Usage

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

- Property [PlacedLabel.Request](/api/chartforgex-rendering-placedlabel/#property-request)

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

 Filter members   

    Show inherited   

 

## Constructors

 `public LabelPlacementRequest(string text, ChartPoint anchor, TextStyle style, IReadOnlyList<LabelCandidate> candidates, int priority = 0)` [#](#constructor-ctor-string-chartforgex-primitives-chartpoint-chartforgex-typography-textstyle-collections-generic-ireadonlylist-chartforgex-rendering-labelcandidate-int32) 

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

Creates a placement request. Higher priorities are placed first; equal priorities retain input order.

Parameters

**text string required**

**anchor ChartForgeX.Primitives.ChartPoint required**

**style ChartForgeX.Typography.TextStyle required**

**candidates System.Collections.Generic.IReadOnlyList<ChartForgeX.Rendering.LabelCandidate> required**

**priority int = 0 optional**

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

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

Gets the original text, retained even when its visible label is shortened or dropped.

 `public ChartPoint Anchor { get; }` [#](#property-anchor) 

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

Gets the anchor in logical pixels.

 `public TextStyle Style { get; }` [#](#property-style) 

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

Gets the resolved text style.

 `public IReadOnlyList<LabelCandidate> Candidates { get; }` [#](#property-candidates) 

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

Gets candidates in preference order.

 `public int Priority { get; }` [#](#property-priority) 

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

Gets placement priority.

 `public LabelFallbackRule Fallback { get; set; }` [#](#property-fallback) 

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

Gets or sets the fallback rule.

 `public bool HasLeaderLine { get; set; }` [#](#property-hasleaderline) 

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

Gets or sets whether a displaced label should have a leader from its anchor.

 `public string? AssociatedMarkId { get; set; }` [#](#property-associatedmarkid) 

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

Gets or sets the associated mark identity. A label fully contained in that mark is intentional; all other intersections are rejected.

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

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

Gets or sets optional bounds restricting this label, in addition to the scene bounds.

 `public double Padding { get; set; }` [#](#property-padding) 

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

Gets or sets padding around text, such as its halo or badge inset, in logical pixels.

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