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