프로젝트

일반

사용자정보

개정판 873011c4

ID873011c45de2dc9166fab8ef8a85a0fa394a0d84
상위 47048310
하위 37eadd3f

백흠경이(가) 9달 전에 추가함

Fix: Undo/Redo 수정 진행

Change-Id: I3392d0ebc877626804a7c5d139d0b31a1942df7d

차이점 보기:

MarkupToPDF/Controls/Text/TextControl.cs
13 13
using System.Windows.Media;
14 14
using System.Windows.Shapes;
15 15
using Markus.Fonts;
16
using System.Windows.Markup;
16 17

  
17 18
namespace MarkupToPDF.Controls.Text
18 19
{    
......
75 76

  
76 77
        }
77 78

  
79
        public override void Copy(CommentUserInfo lhs)
80
        {
81
            if(lhs is TextControl TextCtrl)
82
            {
83
                Text = TextCtrl.Text;
84
                StartPoint = new Point(TextCtrl.StartPoint.X, TextCtrl.StartPoint.Y);
85
                EndPoint = new Point(TextCtrl.EndPoint.X, TextCtrl.EndPoint.Y);
86
                CanvasX = TextCtrl.CanvasX;
87
                CanvasY = TextCtrl.CanvasY;
88
                BoxWidth = TextCtrl.BoxWidth;
89
                BoxHeight = TextCtrl.BoxHeight;
90
                ControlType_No = TextCtrl.ControlType_No;
91
                LineSize = TextCtrl.LineSize;
92
                TextSize = TextCtrl.TextSize;
93
                StrokeColor = TextCtrl.StrokeColor;
94
                FontSize = TextCtrl.FontSize;
95
                UserID = TextCtrl.UserID;
96
                IsHighLight = TextCtrl.IsHighLight;
97
                CommentAngle = TextCtrl.CommentAngle;
98
                PointSet = TextCtrl.PointSet.ConvertAll(x => new Point(x.X, x.Y));
99
                Opacity = TextCtrl.Opacity;
100
                TextFamily = TextCtrl.FontFamily;
101
                TextStyle = TextCtrl.TextStyle;
102
                TextWeight = TextCtrl.TextWeight;
103
                UnderLine = TextCtrl.UnderLine;
104
            }
105
        }
106

  
107
        public override CommentUserInfo Clone()
108
        {
109
            var clone = new TextControl();
110
            clone.Copy(this);
111
            return clone;
112
        }
78 113

  
79 114
        public override void OnApplyTemplate()
80 115
        {
......
106 141
            this.Base_TextBox.LostFocus += new RoutedEventHandler(Base_TextBox_LostFocus);            
107 142
            this.Base_TextBox.SelectionChanged += (sender, e) => MoveCustomCaret();
108 143
            
109
            
110 144
            SetText();
111 145
            DrawingCloud();
112 146
        }

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)