Skip to content
ChartForgeX
Class

LabelPlacementRequest

ChartForgeX.Rendering

Namespace
ChartForgeX.Rendering
Assembly
ChartForgeX
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

Accepted by parameters 1

Constructors

public LabelPlacementRequest(string text, ChartPoint anchor, TextStyle style, IReadOnlyList<LabelCandidate> candidates, int priority = 0) #

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

Properties

public string Text { get; } #

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

public ChartPoint Anchor { get; } #

Gets the anchor in logical pixels.

public TextStyle Style { get; } #

Gets the resolved text style.

public IReadOnlyList<LabelCandidate> Candidates { get; } #

Gets candidates in preference order.

public int Priority { get; } #

Gets placement priority.

public LabelFallbackRule Fallback { get; set; } #

Gets or sets the fallback rule.

public bool HasLeaderLine { get; set; } #

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

public string? AssociatedMarkId { get; set; } #

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; } #

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

public double Padding { get; set; } #

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