개정판 91efe37a
issue #534: Add ItemRect property to all of controls
Change-Id: Id0d640b9fd9959615758b5e55b499f97d6f38dae
MarkupToPDF/Controls/Text/ArrowTextControl.cs | ||
---|---|---|
1848 | 1848 |
} |
1849 | 1849 |
|
1850 | 1850 |
/// <summary> |
1851 |
/// return ArrowTextControl's area |
|
1852 |
/// </summary> |
|
1853 |
/// <author>humkyung</author> |
|
1854 |
/// <date>2019.06.13</date> |
|
1855 |
public override Rect ItemRect |
|
1856 |
{ |
|
1857 |
get |
|
1858 |
{ |
|
1859 |
double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X); |
|
1860 |
double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y); |
|
1861 |
double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X); |
|
1862 |
double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y); |
|
1863 |
|
|
1864 |
return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY)); |
|
1865 |
} |
|
1866 |
} |
|
1867 |
|
|
1868 |
/// <summary> |
|
1851 | 1869 |
/// Serialize this |
1852 | 1870 |
/// </summary> |
1853 | 1871 |
/// <param name="sUserId"></param> |
내보내기 Unified diff