개정판 a6272c57
issue #923: add ICommentUserInfo interface
Change-Id: Id0b65251436a5aa647eef78026dfad90d3ca64ab
MarkupToPDF/Controls/Etc/SymControl.cs | ||
---|---|---|
372 | 372 |
} |
373 | 373 |
|
374 | 374 |
/// <summary> |
375 |
/// call when mouse is moving while drawing control |
|
376 |
/// </summary> |
|
377 |
/// <author>humkyung</author> |
|
378 |
/// <param name="pt"></param> |
|
379 |
/// <param name="bAxisLocked"></param> |
|
380 |
public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed) |
|
381 |
{ |
|
382 |
this.EndPoint = pt; |
|
383 |
this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y); |
|
384 |
this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y); |
|
385 |
|
|
386 |
this.StrokeColor = new SolidColorBrush(Colors.Red); |
|
387 |
|
|
388 |
if (this.StartPoint != this.EndPoint) |
|
389 |
{ |
|
390 |
if (this.PathData == null) |
|
391 |
{ |
|
392 |
using (StringToPathConverter Convert = new StringToPathConverter()) |
|
393 |
{ |
|
394 |
this.PathData = Convert.Convert("M-5,5L0,0L20,30L40,-20 "); |
|
395 |
} |
|
396 |
} |
|
397 |
} |
|
398 |
|
|
399 |
this.PointSet = new List<Point> |
|
400 |
{ |
|
401 |
this.StartPoint, |
|
402 |
this.LeftBottomPoint, |
|
403 |
this.EndPoint, |
|
404 |
this.TopRightPoint, |
|
405 |
}; |
|
406 |
} |
|
407 |
|
|
408 |
/// <summary> |
|
375 | 409 |
/// return SymControl's area |
376 | 410 |
/// </summary> |
377 | 411 |
/// <author>humkyung</author> |
내보내기 Unified diff