개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Line/ArrowControl_Multi.cs | ||
---|---|---|
351 | 351 |
} |
352 | 352 |
|
353 | 353 |
/// <summary> |
354 |
/// return ArrowControl_Multi's area |
|
355 |
/// </summary> |
|
356 |
/// <author>humkyung</author> |
|
357 |
/// <date>2019.06.13</date> |
|
358 |
public override Rect ItemRect |
|
359 |
{ |
|
360 |
get |
|
361 |
{ |
|
362 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
363 |
dMinX = Math.Min(this.MiddlePoint.X, dMinX); |
|
364 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
365 |
dMinY = Math.Min(this.MiddlePoint.Y, dMinY); |
|
366 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
367 |
dMaxX = Math.Max(this.MiddlePoint.X, dMaxX); |
|
368 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
369 |
dMaxY = Math.Max(this.MiddlePoint.Y, dMaxY); |
|
370 |
|
|
371 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
372 |
} |
|
373 |
} |
|
374 |
|
|
375 |
/// <summary> |
|
354 | 376 |
/// Serialize this |
355 | 377 |
/// </summary> |
356 | 378 |
/// <param name="sUserId"></param> |
내보내기 Unified diff