API Reference
Struct
VisualCanvasPlacement
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
- Method VisualCanvasPlacement.At
Accepted by parameters 35
- Method ImageComposition.DrawChart
- Method ImageComposition.DrawChartGrid
- Method ImageComposition.DrawImage
- Method ImageComposition.DrawImageBytes
- Method ImageComposition.DrawImageFile
- Method ImageComposition.DrawTopology
- Method ImageComposition.DrawVisualBlock
- Method ImageComposition.DrawVisualCanvas
- Method ImageComposition.DrawVisualGrid
- Extension method VisualCanvas.AddChart
- Extension method VisualCanvas.AddChartGrid
- Extension method VisualCanvas.AddHeroBadgeImageFile
- Extension method VisualCanvas.AddImageBytes
- Extension method VisualCanvas.AddImageFile
- Extension method VisualCanvas.AddRasterImage
- Extension method VisualCanvas.AddTopology
- Extension method VisualCanvas.AddVisualBlock
- Extension method VisualCanvas.AddVisualGrid
- Method VisualCanvas.AddFeatureStrip
- Method VisualCanvas.AddHeroBadge
- Method VisualCanvas.AddHeroTitle
- Method VisualCanvas.AddImage
- Method VisualCanvas.AddInfoTile
- Method VisualCanvas.AddKeyValueBlock
- Method VisualCanvas.AddText
- Method VisualCanvas.ResolvePlacement
- Method VisualsExtensions.AddChart
- Method VisualsExtensions.AddChartGrid
- Method VisualsExtensions.AddHeroBadgeImageFile
- Method VisualsExtensions.AddImageBytes
- Method VisualsExtensions.AddImageFile
- Method VisualsExtensions.AddRasterImage
- Method VisualsExtensions.AddTopology
- Method VisualsExtensions.AddVisualBlock
- Method VisualsExtensions.AddVisualGrid
Constructors
public VisualCanvasPlacement(VisualCanvasAnchor anchor, Double offsetX = 0, Double offsetY = 0) #Initializes an anchor placement.
Parameters
- anchor ChartForgeX.Composition.VisualCanvasAnchor
- offsetX System.Double = 0
- offsetY System.Double = 0
Methods
public static VisualCanvasPlacement At(VisualCanvasAnchor anchor, Double offsetX = 0, Double offsetY = 0) #Returns:
VisualCanvasPlacementCreates an anchor placement.
Parameters
- anchor ChartForgeX.Composition.VisualCanvasAnchor
- offsetX System.Double = 0
- offsetY System.Double = 0
Resolve 2 overloads
public ChartRect Resolve(Double containerWidth, Double containerHeight, Double width, Double height) #Returns:
ChartRectResolves this placement inside a zero-origin container.
Parameters
- containerWidth System.Double
- containerHeight System.Double
- width System.Double
- height System.Double
public ChartRect Resolve(ChartRect container, Double width, Double height) #Returns:
ChartRectResolves this placement inside another rectangular region.
Parameters
- container ChartForgeX.Primitives.ChartRect
- width System.Double
- height System.Double
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?
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.