개정판 a5b465dc
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Etc/SymControlN.cs | ||
---|---|---|
337 | 337 |
} |
338 | 338 | |
339 | 339 |
/// <summary> |
340 |
/// return SymControlN's area |
|
341 |
/// </summary> |
|
342 |
/// <author>humkyung</author> |
|
343 |
/// <date>2019.06.13</date> |
|
344 |
public override Rect ItemRect |
|
345 |
{ |
|
346 |
get |
|
347 |
{ |
|
348 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
349 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
350 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
351 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
352 | ||
353 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
354 |
} |
|
355 |
} |
|
356 | ||
357 |
/// <summary> |
|
340 | 358 |
/// Serialize this |
341 | 359 |
/// </summary> |
342 | 360 |
/// <param name="sUserId"></param> |
내보내기 Unified diff