85 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| using System.Xml.Serialization;
 | |
| using System.Drawing;
 | |
| 
 | |
| namespace Volian.Svg.Library
 | |
| {
 | |
| 	[XmlRoot("svg-test")]
 | |
| 	public class SvgTest
 | |
| 	{
 | |
| 		public SvgTest()
 | |
| 		{
 | |
| 			_MyLineSettings = new SvgLineSettings(Color.Red,new SvgMeasurement(3, E_MeasurementUnits.PX));
 | |
| 			_MyFillSettings = new SvgFillSettings(Color.Cyan);
 | |
| 			_MyFontSettings = new SvgFontSettings(new Font("Cambria", 20, FontStyle.Bold | FontStyle.Italic | FontStyle.Underline, GraphicsUnit.Point));
 | |
| 		}
 | |
| 		#region Line Settings
 | |
| 		private SvgLineSettings _MyLineSettings;
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("stroke")]
 | |
| 		public string Stroke
 | |
| 		{
 | |
| 			get { return _MyLineSettings.Stroke; }
 | |
| 			set { _MyLineSettings.Stroke = value; }
 | |
| 		}
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("stroke-width")]
 | |
| 		public string StrokeWidth
 | |
| 		{
 | |
| 			get { return _MyLineSettings.StrokeWidth; }
 | |
| 			set { _MyLineSettings.StrokeWidth = value; }
 | |
| 		}
 | |
| 		#endregion
 | |
| 		#region Fill Settings
 | |
| 		private SvgFillSettings _MyFillSettings;
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("fill")]
 | |
| 		public string Fill
 | |
| 		{
 | |
| 			get { return _MyFillSettings.Fill; }
 | |
| 			set { _MyFillSettings.Fill = value; }
 | |
| 		}
 | |
| 		#endregion
 | |
| 		#region Font Settings
 | |
| 		private SvgFontSettings _MyFontSettings;
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("font-family")]
 | |
| 		public string FontFamily
 | |
| 		{
 | |
| 			get { return _MyFontSettings.FontFamily; }
 | |
| 			set { _MyFontSettings.FontFamily = value; }
 | |
| 		}
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("font-size")]
 | |
| 		public string FontSize
 | |
| 		{
 | |
| 			get { return _MyFontSettings.FontSize; }
 | |
| 			set { _MyFontSettings.FontSize = value; }
 | |
| 		}
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("font-style")]
 | |
| 		public string SVGFontStyle
 | |
| 		{
 | |
| 			get { return _MyFontSettings.SVGFontStyle; }
 | |
| 			set { _MyFontSettings.SVGFontStyle = value; }
 | |
| 		}
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("font-weight")]
 | |
| 		public string FontWeight
 | |
| 		{
 | |
| 			get { return _MyFontSettings.FontWeight; }
 | |
| 			set { _MyFontSettings.FontWeight = value; }
 | |
| 		}
 | |
| 		[System.ComponentModel.DefaultValueAttribute("")]
 | |
| 		[XmlAttribute("text-decoration")]
 | |
| 		public string TextDecoration
 | |
| 		{
 | |
| 			get { return _MyFontSettings.TextDecoration; }
 | |
| 			set { _MyFontSettings.TextDecoration = value; }
 | |
| 		}
 | |
| 		#endregion
 | |
| 	}
 | |
| }
 | 
