개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Shape/RectCloudControl.cs | ||
---|---|---|
561 | 561 |
} |
562 | 562 |
|
563 | 563 |
/// <summary> |
564 |
/// return rectcloudcontrols' area |
|
565 |
/// </summary> |
|
566 |
/// <author>humkyung</author> |
|
567 |
/// <date>2019.06.13</date> |
|
568 |
public override Rect ItemRect |
|
569 |
{ |
|
570 |
get |
|
571 |
{ |
|
572 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
573 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
574 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
575 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
576 |
|
|
577 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
578 |
} |
|
579 |
} |
|
580 |
|
|
581 |
/// <summary> |
|
564 | 582 |
/// Serialize this |
565 | 583 |
/// </summary> |
566 | 584 |
/// <param name="sUserId"></param> |
내보내기 Unified diff