Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeDataBarRenderer

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Shared dependency-free renderer for proportional data bars inside a rectangular region.

Inheritance

  • Object
  • OfficeDataBarRenderer

Methods

public static StringBuilder AppendSvg(StringBuilder builder, Double x, Double y, Double width, Double height, Double startRatio, Double ratio, OfficeColor color, Double verticalInset = 2) #
Returns: StringBuilder

Appends SVG markup for a resolved data bar.

Parameters

builder System.Text.StringBuilder requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
startRatio System.Double requiredposition: 5
ratio System.Double requiredposition: 6
color OfficeIMO.Drawing.OfficeColor requiredposition: 7
verticalInset System.Double = 2 optionalposition: 8
public static Void DrawRaster(OfficeRasterCanvas canvas, Double x, Double y, Double width, Double height, Double startRatio, Double ratio, OfficeColor color, Double verticalInset = 2) #
Returns: Void

Draws a resolved data bar on a raster canvas.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
startRatio System.Double requiredposition: 5
ratio System.Double requiredposition: 6
color OfficeIMO.Drawing.OfficeColor requiredposition: 7
verticalInset System.Double = 2 optionalposition: 8
public static OfficeDataBarGeometry Resolve(Double x, Double y, Double width, Double height, Double startRatio, Double ratio, Double verticalInset = 2, Double minimumHeight = 1) #
Returns: OfficeDataBarGeometry

Resolves data-bar placement and size without binding the result to a specific output format.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
startRatio System.Double requiredposition: 4
ratio System.Double requiredposition: 5
verticalInset System.Double = 2 optionalposition: 6
minimumHeight System.Double = 1 optionalposition: 7