* UIBarChartEx:跳转横坐标文字旋转后的位置
This commit is contained in:
parent
858df6a7e2
commit
1ac3186c8c
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
@ -584,7 +584,7 @@ namespace Sunny.UI
|
||||
float w = DrawSize.Width * data.Data.Count * 1.0f / DataCount;
|
||||
SizeF sf = g.MeasureString(data.Name, SubFont);
|
||||
if (Option.XAxis.AxisLabel.Angle != 0)
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, new PointF(start + w / 2.0f - sf.Width / 2.0f, DrawOrigin.Y + Option.Grid.Bottom / 2.0f),
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, new PointF(start + w / 2.0f - 10, DrawOrigin.Y + Option.Grid.Bottom / 2.0f),
|
||||
new StringFormat() { Alignment = StringAlignment.Center }, (3600 - Option.XAxis.AxisLabel.Angle) % 360);
|
||||
else
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, start + w / 2.0f - sf.Width / 2.0f, DrawOrigin.Y + Option.XAxis.AxisTick.Length + Option.XAxis.AxisTick.Distance);
|
||||
@ -598,7 +598,7 @@ namespace Sunny.UI
|
||||
{
|
||||
SizeF sf = g.MeasureString(data.Name, SubFont);
|
||||
if (Option.XAxis.AxisLabel.Angle != 0)
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, new PointF(start - sf.Width / 2.0f, DrawOrigin.Y + Option.Grid.Bottom / 2.0f),
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, new PointF(start - 10, DrawOrigin.Y + Option.Grid.Bottom / 2.0f),
|
||||
new StringFormat() { Alignment = StringAlignment.Center }, (3600 - Option.XAxis.AxisLabel.Angle) % 360);
|
||||
else
|
||||
g.DrawString(data.Name, SubFont, ChartStyle.ForeColor, start - sf.Width / 2.0f, DrawOrigin.Y + Option.XAxis.AxisTick.Length + Option.XAxis.AxisTick.Distance);
|
||||
|
@ -32,7 +32,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Text")]
|
||||
[ToolboxItem(true)]
|
||||
public sealed class UICheckBox : UIControl
|
||||
public class UICheckBox : UIControl
|
||||
{
|
||||
public UICheckBox()
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
public sealed class UISymbolButton : UIButton
|
||||
public class UISymbolButton : UIButton
|
||||
{
|
||||
private int _symbolSize = 24;
|
||||
private int _imageInterval = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user