개정판 e6a9ddaf
issue #923: fixed ControlType.ChainLine drawing
Change-Id: Iee05d32624f7260c51cf31dc4827fcee6085be55
MarkupToPDF/Controls/Text/TextControl.cs | ||
---|---|---|
1146 | 1146 |
{ |
1147 | 1147 |
get |
1148 | 1148 |
{ |
1149 |
Point start = new Point(); |
|
1150 |
start.X = this.CanvasX; |
|
1151 |
start.Y = this.CanvasY; |
|
1149 |
Point start = new Point(this.CanvasX, this.CanvasY); |
|
1152 | 1150 |
|
1153 | 1151 |
Point length = new Point(); |
1154 | 1152 |
double angle = this.Angle * Math.PI / 180; |
... | ... | |
1161 | 1159 |
} |
1162 | 1160 |
} |
1163 | 1161 |
|
1164 |
/// <summary> |
|
1165 |
/// Serialize this |
|
1166 |
/// </summary> |
|
1167 |
/// <param name="sUserId"></param> |
|
1168 |
/// <returns></returns> |
|
1169 |
public override string Serialize() |
|
1162 |
/// <summary> |
|
1163 |
/// translate TextControl by given dx, dy |
|
1164 |
/// </summary> |
|
1165 |
/// <param name="dx"></param> |
|
1166 |
/// <param name="dy"></param> |
|
1167 |
public override void Move(double dx, double dy) |
|
1168 |
{ |
|
1169 |
Canvas.SetLeft(this, Canvas.GetLeft(this) + dx); |
|
1170 |
Canvas.SetTop(this, Canvas.GetTop(this) + dy); |
|
1171 |
this.StartPoint = new Point(this.StartPoint.X + dx, this.StartPoint.Y + dy); |
|
1172 |
this.EndPoint = new Point(this.EndPoint.X + dx, this.EndPoint.Y + dy); |
|
1173 |
} |
|
1174 |
|
|
1175 |
/// <summary> |
|
1176 |
/// Serialize this |
|
1177 |
/// </summary> |
|
1178 |
/// <param name="sUserId"></param> |
|
1179 |
/// <returns></returns> |
|
1180 |
public override string Serialize() |
|
1170 | 1181 |
{ |
1171 | 1182 |
using (S_TextControl STemp = new S_TextControl()) |
1172 | 1183 |
{ |
내보내기 Unified diff