개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Etc/SymControl.cs | ||
---|---|---|
372 | 372 |
} |
373 | 373 |
|
374 | 374 |
/// <summary> |
375 |
/// return SymControl's area |
|
376 |
/// </summary> |
|
377 |
/// <author>humkyung</author> |
|
378 |
/// <date>2019.06.13</date> |
|
379 |
public override Rect ItemRect |
|
380 |
{ |
|
381 |
get |
|
382 |
{ |
|
383 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
384 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
385 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
386 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
387 |
|
|
388 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
389 |
} |
|
390 |
} |
|
391 |
|
|
392 |
/// <summary> |
|
375 | 393 |
/// Serialize this |
376 | 394 |
/// </summary> |
377 | 395 |
/// <param name="sUserId"></param> |
내보내기 Unified diff