Files
SourceCode/PROMS/Volian.Svg.Library/SvgInheritedSettings.cs
T

70 lines
1.9 KiB
C#

namespace Volian.Svg.Library
{
internal class SvgInheritedSettings
{
#region MyParent
SvgInheritedSettings _MyParentsSettings = null;
internal SvgInheritedSettings MyParentsSettings
{
get { return _MyParentsSettings; }
set
{
_MyParentsSettings = value;
MyLineSettings.MyParentsSettings = value.MyLineSettings;
MyFillSettings.MyParentsSettings = value.MyFillSettings;
MyFontSettings.MyParentsSettings = value.MyFontSettings;
}
}
#endregion
#region Line Settings
public SvgLineSettings MyLineSettings { get; set; } = new SvgLineSettings();
public string Stroke
{
get { return MyLineSettings.Stroke; }
set { MyLineSettings.Stroke = value; }
}
public string StrokeWidth
{
get { return MyLineSettings.StrokeWidth; }
set { MyLineSettings.StrokeWidth = value; }
}
#endregion
#region Fill Settings
internal SvgFillSettings MyFillSettings { get; set; } = new SvgFillSettings();
public string Fill
{
get { return MyFillSettings.Fill; }
set { MyFillSettings.Fill = value; }
}
#endregion
#region Font Settings
internal SvgFontSettings MyFontSettings { get; set; } = new SvgFontSettings();
public string FontFamily
{
get { return MyFontSettings.FontFamily; }
set { MyFontSettings.FontFamily = value; }
}
public string FontSize
{
get { return MyFontSettings.FontSize; }
set { MyFontSettings.FontSize = value; }
}
public string SVGFontStyle
{
get { return MyFontSettings.SVGFontStyle; }
set { MyFontSettings.SVGFontStyle = value; }
}
public string FontWeight
{
get { return MyFontSettings.FontWeight; }
set { MyFontSettings.FontWeight = value; }
}
public string TextDecoration
{
get { return MyFontSettings.TextDecoration; }
set { MyFontSettings.TextDecoration = value; }
}
#endregion
}
}