개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Etc/SignControl.cs | ||
---|---|---|
295 | 295 |
} |
296 | 296 |
|
297 | 297 |
/// <summary> |
298 |
/// return SignControl's area |
|
299 |
/// </summary> |
|
300 |
/// <author>humkyung</author> |
|
301 |
/// <date>2019.06.13</date> |
|
302 |
public override Rect ItemRect |
|
303 |
{ |
|
304 |
get |
|
305 |
{ |
|
306 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
307 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
308 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
309 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
310 |
|
|
311 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
312 |
} |
|
313 |
} |
|
314 |
|
|
315 |
/// <summary> |
|
298 | 316 |
/// Serialize this |
299 | 317 |
/// </summary> |
300 | 318 |
/// <param name="sUserId"></param> |
내보내기 Unified diff