Print Library, Svg Library, Utils Library, XYPlots

This commit is contained in:
2026-07-24 13:36:46 -04:00
parent 06c3136566
commit f67d37801a
68 changed files with 12173 additions and 16618 deletions
+16 -43
View File
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace Volian.Svg.Library
@@ -9,34 +6,18 @@ namespace Volian.Svg.Library
{
#region ctor
public SvgFillSettings() { ;}
public SvgFillSettings(Color myColor)
{
_Fill = ColorTranslator.ToHtml(myColor);
}
//public SvgFillSettings(string myFill)
//{
// _Fill = myFill;
//}
#endregion
#region Inheritance
private SvgFillSettings _MyParentsSettings = null;
public SvgFillSettings MyParentsSettings
{
get { return _MyParentsSettings; }
set
{
_MyParentsSettings = value;
}
}
#endregion
#region Internal Inherited Properties
protected string InheritedFill
public SvgFillSettings(Color myColor) => Fill = ColorTranslator.ToHtml(myColor);
#endregion
#region Inheritance
public SvgFillSettings MyParentsSettings { get; set; } = null;
#endregion
#region Internal Inherited Properties
protected string InheritedFill
{
get
{
// Fill = "", "0" - Default, otherwise the value
if (_Fill != "" && _Fill != "0" && _Fill.ToLower() != "empty") return _Fill; // Current Value
if (_MyParentsSettings != null) return _MyParentsSettings.InheritedFill; // Inherited
if (Fill != "" && Fill != "0" && Fill.ToLower() != "empty") return Fill; // Current Value
if (MyParentsSettings != null) return MyParentsSettings.InheritedFill; // Inherited
return "Black"; // Default
}
}
@@ -54,20 +35,12 @@ namespace Volian.Svg.Library
}
set
{
if (value == Color.Transparent || value == Color.Empty)
_Fill = "none";
else
_Fill = ColorTranslator.ToHtml(value);
}
Fill = value == Color.Transparent || value == Color.Empty ? "none" : ColorTranslator.ToHtml(value);
}
}
#endregion
#region Properties
private string _Fill = string.Empty; // Default value is None
public string Fill
{
get { return _Fill; }
set { _Fill = value; }
}
#endregion
}
#endregion
#region Properties
public string Fill { get; set; } = string.Empty;
#endregion
}
}