개정판 a5b465dc
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Line/LineControl.cs | ||
---|---|---|
487 | 487 |
} |
488 | 488 |
|
489 | 489 |
/// <summary> |
490 |
/// return linecontrols' area |
|
491 |
/// </summary> |
|
492 |
/// <author>humkyung</author> |
|
493 |
/// <date>2019.06.13</date> |
|
494 |
public override Rect ItemRect |
|
495 |
{ |
|
496 |
get |
|
497 |
{ |
|
498 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
499 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
500 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
501 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
502 |
|
|
503 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
504 |
} |
|
505 |
} |
|
506 |
|
|
507 |
/// <summary> |
|
490 | 508 |
/// Serialize this |
491 | 509 |
/// </summary> |
492 | 510 |
/// <param name="sUserId"></param> |
내보내기 Unified diff