개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Cad/CoordinateControl.cs | ||
---|---|---|
551 | 551 |
} |
552 | 552 |
|
553 | 553 |
/// <summary> |
554 |
/// return CoordinateControl's area |
|
555 |
/// </summary> |
|
556 |
/// <author>humkyung</author> |
|
557 |
/// <date>2019.06.13</date> |
|
558 |
public override Rect ItemRect |
|
559 |
{ |
|
560 |
get |
|
561 |
{ |
|
562 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
563 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
564 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
565 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
566 |
|
|
567 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
568 |
} |
|
569 |
} |
|
570 |
|
|
571 |
/// <summary> |
|
554 | 572 |
/// Serialize this |
555 | 573 |
/// </summary> |
556 | 574 |
/// <param name="sUserId"></param> |
내보내기 Unified diff