개정판 a5b465dc
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Shape/CircleControl.cs | ||
---|---|---|
438 | 438 |
} |
439 | 439 |
|
440 | 440 |
/// <summary> |
441 |
/// return circlecontrols' area |
|
442 |
/// </summary> |
|
443 |
/// <author>humkyung</author> |
|
444 |
/// <date>2019.06.13</date> |
|
445 |
public override Rect ItemRect |
|
446 |
{ |
|
447 |
get |
|
448 |
{ |
|
449 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
450 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
451 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
452 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
453 |
|
|
454 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
455 |
} |
|
456 |
} |
|
457 |
|
|
458 |
/// <summary> |
|
441 | 459 |
/// Serialize this |
442 | 460 |
/// </summary> |
443 | 461 |
/// <param name="sUserId"></param> |
내보내기 Unified diff