Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Struct

VisualCanvasPlacement

Namespace ChartForgeX.Composition
Assembly ChartForgeX.Visuals
Base ValueType
Modifiers sealed

Describes reusable anchor-based placement inside a canvas or another rectangular region.

Inheritance

  • ValueType
  • VisualCanvasPlacement

Usage

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

Constructors

public VisualCanvasPlacement(VisualCanvasAnchor anchor, Double offsetX = 0, Double offsetY = 0) #

Initializes an anchor placement.

Parameters

anchor ChartForgeX.Composition.VisualCanvasAnchor requiredposition: 0
offsetX System.Double = 0 optionalposition: 1
offsetY System.Double = 0 optionalposition: 2

Methods

public static VisualCanvasPlacement At(VisualCanvasAnchor anchor, Double offsetX = 0, Double offsetY = 0) #
Returns: VisualCanvasPlacement

Creates an anchor placement.

Parameters

anchor ChartForgeX.Composition.VisualCanvasAnchor requiredposition: 0
offsetX System.Double = 0 optionalposition: 1
offsetY System.Double = 0 optionalposition: 2
Resolve 2 overloads
public ChartRect Resolve(Double containerWidth, Double containerHeight, Double width, Double height) #
Returns: ChartRect

Resolves this placement inside a zero-origin container.

Parameters

containerWidth System.Double requiredposition: 0
containerHeight System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
public ChartRect Resolve(ChartRect container, Double width, Double height) #
Returns: ChartRect

Resolves this placement inside another rectangular region.

Parameters

container ChartForgeX.Primitives.ChartRect requiredposition: 0
width System.Double requiredposition: 1
height System.Double requiredposition: 2

Properties

public VisualCanvasAnchor Anchor { get; } #

Gets the anchor used as the placement reference.

public Double OffsetX { get; } #

Gets the horizontal offset. For right anchors, positive values inset from the right edge.

public Double OffsetY { get; } #

Gets the vertical offset. For bottom anchors, positive values inset from the bottom edge.