개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Etc/DateControl.cs | ||
---|---|---|
459 | 459 |
} |
460 | 460 |
|
461 | 461 |
/// <summary> |
462 |
/// return DateControl's area |
|
463 |
/// </summary> |
|
464 |
/// <author>humkyung</author> |
|
465 |
/// <date>2019.06.13</date> |
|
466 |
public override Rect ItemRect |
|
467 |
{ |
|
468 |
get |
|
469 |
{ |
|
470 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
471 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
472 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
473 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
474 |
|
|
475 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
476 |
} |
|
477 |
} |
|
478 |
|
|
479 |
/// <summary> |
|
462 | 480 |
/// Serialize this |
463 | 481 |
/// </summary> |
464 | 482 |
/// <param name="sUserId"></param> |
내보내기 Unified diff