개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Line/ArcControl.cs | ||
---|---|---|
523 | 523 |
} |
524 | 524 |
|
525 | 525 |
/// <summary> |
526 |
/// return Arc's area |
|
527 |
/// </summary> |
|
528 |
/// <author>humkyung</author> |
|
529 |
/// <date>2019.06.13</date> |
|
530 |
public override Rect ItemRect |
|
531 |
{ |
|
532 |
get |
|
533 |
{ |
|
534 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
535 |
dMinX = Math.Min(this.MidPoint.X, dMinX); |
|
536 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
537 |
dMinY = Math.Min(this.MidPoint.Y, dMinY); |
|
538 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
539 |
dMaxX = Math.Max(this.MidPoint.X, dMaxX); |
|
540 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
541 |
dMaxY = Math.Max(this.MidPoint.Y, dMaxY); |
|
542 |
|
|
543 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
544 |
} |
|
545 |
} |
|
546 |
|
|
547 |
/// <summary> |
|
526 | 548 |
/// Serialize this |
527 | 549 |
/// </summary> |
528 | 550 |
/// <param name="sUserId"></param> |
내보내기 Unified diff