개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
MarkupToPDF/Controls/Text/ArrowTextControl.cs | ||
---|---|---|
11 | 11 |
using System.Windows.Shapes; |
12 | 12 |
using MarkupToPDF.Controls.Custom; |
13 | 13 |
using MarkupToPDF.Common; |
14 |
using MarkupToPDF.Serialize.Core; |
|
15 |
using MarkupToPDF.Serialize.S_Control; |
|
14 | 16 |
|
15 | 17 |
namespace MarkupToPDF.Controls.Text |
16 | 18 |
{ |
... | ... | |
227 | 229 |
} |
228 | 230 |
} |
229 | 231 |
|
230 |
public ControlType ControlType |
|
232 |
override public ControlType ControlType
|
|
231 | 233 |
{ |
232 | 234 |
set |
233 | 235 |
{ |
... | ... | |
1845 | 1847 |
return _pathGeometry; |
1846 | 1848 |
} |
1847 | 1849 |
|
1850 |
/// <summary> |
|
1851 |
/// Serialize this |
|
1852 |
/// </summary> |
|
1853 |
/// <param name="sUserId"></param> |
|
1854 |
/// <returns></returns> |
|
1855 |
public override string Serialize() |
|
1856 |
{ |
|
1857 |
using (S_ArrowTextControl STemp = new S_ArrowTextControl()) |
|
1858 |
{ |
|
1859 |
STemp.TransformPoint = "0|0"; |
|
1860 |
STemp.PointSet = this.PointSet; |
|
1861 |
STemp.SizeSet = String.Format("{0}", this.LineSize); |
|
1862 |
STemp.StrokeColor = this.StrokeColor.Color.ToString(); |
|
1863 |
STemp.StartPoint = this.StartPoint; |
|
1864 |
STemp.ArrowStyle = this.ArrowTextStyle; |
|
1865 |
//STemp.StrokeColor = "#FF00FF00"; |
|
1866 |
STemp.UserID = this.UserID; |
|
1867 |
STemp.ArrowText = this.Base_TextBox.Text; |
|
1868 |
STemp.BorderSize = this.BorderSize; |
|
1869 |
STemp.isHighLight = this.isHighLight; |
|
1870 |
STemp.BoxHeight = this.BoxHeight; |
|
1871 |
STemp.BoxWidth = this.BoxWidth; |
|
1872 |
STemp.Opac = this.Opacity; |
|
1873 |
STemp.EndPoint = this.EndPoint; |
|
1874 |
STemp.isFixed = this.isFixed; |
|
1875 |
//STemp.DashSize = this.DashSize; |
|
1876 |
STemp.Name = this.GetType().Name.ToString(); |
|
1877 |
STemp.isTrans = this.isTrans; |
|
1878 |
STemp.MidPoint = this.MidPoint; |
|
1879 |
STemp.Angle = this.Angle; |
|
1880 |
STemp.fontConfig = new List<string>() |
|
1881 |
{ |
|
1882 |
this.TextFamily.ToString(), |
|
1883 |
this.TextStyle.ToString(), |
|
1884 |
this.TextWeight.ToString(), |
|
1885 |
this.TextSize.ToString(), |
|
1886 |
}; |
|
1887 |
|
|
1888 |
if (this.UnderLine != null) |
|
1889 |
{ |
|
1890 |
STemp.fontConfig.Add("true"); |
|
1891 |
} |
|
1892 |
|
|
1893 |
///강인구 추가(2017.11.02) |
|
1894 |
///Memo 추가 |
|
1895 |
STemp.Memo = this.Memo; |
|
1896 |
STemp.BorderSize = this.BorderSize; |
|
1897 |
return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize())); |
|
1898 |
}; |
|
1899 |
} |
|
1900 |
|
|
1848 | 1901 |
#region Dispose |
1849 | 1902 |
public void Dispose() |
1850 | 1903 |
{ |
내보내기 Unified diff