# LabelCandidate

A candidate text-box position relative to a label's anchor, tried in list order.

 Struct  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

A candidate text-box position relative to a label's anchor, tried in list order.

## Inheritance

- ValueType
- LabelCandidate

## 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 [LabelPlacementRequest.Candidates](/api/chartforgex-rendering-labelplacementrequest/#property-candidates)

### Accepted by parameters 1

- Constructor [LabelPlacementRequest.LabelPlacementRequest](/api/chartforgex-rendering-labelplacementrequest/#constructor-ctor-string-chartforgex-primitives-chartpoint-chartforgex-typography-textstyle-collections-generic-ireadonlylist-chartforgex-rendering-labelcandidate-int32) parameter `candidates`

 Filter members   

    Show inherited   

 

## Constructors

 `public LabelCandidate(double offsetX, double offsetY, double horizontalAlignment = 0, double verticalAlignment = 0)` [#](#constructor-ctor-double-double-double-double) 

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

Creates a candidate. Alignment fractions are zero at the leading edge and one at the trailing edge.

Parameters

**offsetX double required**

**offsetY double required**

**horizontalAlignment double = 0 optional**

**verticalAlignment double = 0 optional**

## 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 OffsetX { get; }` [#](#property-offsetx) 

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

Gets the horizontal offset in logical pixels.

 `public double OffsetY { get; }` [#](#property-offsety) 

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

Gets the vertical offset in logical pixels.

 `public double HorizontalAlignment { get; }` [#](#property-horizontalalignment) 

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

Gets the horizontal alignment fraction.

 `public double VerticalAlignment { get; }` [#](#property-verticalalignment) 

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

Gets the vertical alignment fraction.

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