Skip to content

Commit dac4e1f

Browse files
committed
加上更多构造函数,方便接入
1 parent 873418f commit dac4e1f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/dotnetCampus.OpenXMLUnitConverter/EmuPoint.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ public EmuPoint(Emu x, Emu y)
1818
Y = y;
1919
}
2020

21+
/// <summary>
22+
/// 创建 <see cref="Emu"/> 表示的点
23+
/// </summary>
24+
/// <param name="xEmu">用EMU单位的 X 坐标</param>
25+
/// <param name="yEmu">用EMU单位的 Y 坐标</param>
26+
public EmuPoint(double xEmu, double yEmu) : this(new Emu(xEmu), new Emu(yEmu))
27+
{
28+
}
29+
2130
/// <summary>
2231
/// 表示 X 坐标
2332
/// </summary>

0 commit comments

Comments
 (0)