DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.MicroCharts
{
internal abstract class BarBaseMicroChart : MicroChartBase
{
internal static int HotPointOffset
{
get { return Dpi.Width4; }
}
protected virtual Rectangle GetHotPointBounds(Rectangle barBounds, bool isPositiveValue)
{
Rectangle bounds = Rectangle.Empty;
if (isPositiveValue)
{
bounds = new Rectangle(barBounds.X + (barBounds.Width - HotPointOffset * 2) / 2,
barBounds.Y - HotPointOffset,
HotPointOffset * 2,
HotPointOffset * 2);
}
else
{
bounds = new Rectangle(barBounds.X + (barBounds.Width - HotPointOffset * 2) / 2,
barBounds.Bottom - HotPointOffset,
HotPointOffset * 2,
HotPointOffset * 2);
}
return bounds;
}
private BarMicroChartStyle _Style;
public virtual BarMicroChartStyle Style
{
get { return _Style; }
set { _Style = value; }
}
}
}