개정판 a6272c57
issue #923: add ICommentUserInfo interface
Change-Id: Id0b65251436a5aa647eef78026dfad90d3ca64ab
MarkupToPDF/Controls/Shape/RectangleControl.cs | ||
---|---|---|
12 | 12 |
using MarkupToPDF.Common; |
13 | 13 |
using MarkupToPDF.Serialize.Core; |
14 | 14 |
using MarkupToPDF.Serialize.S_Control; |
15 |
using System.Windows.Input; |
|
15 | 16 |
|
16 | 17 |
namespace MarkupToPDF.Controls.Shape |
17 | 18 |
{ |
... | ... | |
445 | 446 |
IsClosed = true |
446 | 447 |
}; |
447 | 448 |
|
448 |
if (ControlType == ControlType.Rectangle)
|
|
449 |
if ((this.ControlType == ControlType.Rectangle) || (this.ControlType == ControlType.Mark))
|
|
449 | 450 |
{ |
450 | 451 |
switch (this.Paint) |
451 | 452 |
{ |
... | ... | |
488 | 489 |
//AdornerControl adornerControl = new Adorner.AdornerControl(); |
489 | 490 |
////adornerControl |
490 | 491 |
|
491 |
//adornerControl.Content = pathGeometry;
|
|
492 |
//adornerthis.Content = pathGeometry;
|
|
492 | 493 |
|
493 | 494 |
} |
494 | 495 |
} |
... | ... | |
549 | 550 |
public event PropertyChangedEventHandler PropertyChanged; |
550 | 551 |
|
551 | 552 |
/// <summary> |
553 |
/// call when mouse is moving while drawing control |
|
554 |
/// </summary> |
|
555 |
/// <author>humkyung</author> |
|
556 |
/// <param name="pt"></param> |
|
557 |
/// <param name="bAxisLocked"></param> |
|
558 |
public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed) |
|
559 |
{ |
|
560 |
this.EndPoint = bShiftKeyPressed ? this.GetSquareEndPoint(this.StartPoint, pt) : pt; |
|
561 |
this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y); |
|
562 |
this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y); |
|
563 |
|
|
564 |
this.PointSet = new List<Point> |
|
565 |
{ |
|
566 |
this.StartPoint, |
|
567 |
this.LeftBottomPoint, |
|
568 |
this.EndPoint, |
|
569 |
this.TopRightPoint, |
|
570 |
}; |
|
571 |
} |
|
572 |
|
|
573 |
/// <summary> |
|
552 | 574 |
/// return rectanglecontrols' area |
553 | 575 |
/// </summary> |
554 | 576 |
public override Rect ItemRect |
내보내기 Unified diff