프로젝트

일반

사용자정보

개정판 3b938959

ID3b9389598593358f5f751e2d612ec6bb3960a522
상위 a8aec13a
하위 5639752b

김태성이(가) 11달 전에 추가함

issue #000000 검색 수정

Change-Id: I7ac25e17a0b62f753c52f52b8a77b73bb3bbe2bf

차이점 보기:

MarkupToPDF/Controls/Text/ArrowTextControl.cs
17 17

  
18 18
namespace MarkupToPDF.Controls.Text
19 19
{
20
    public class ArrowTextControl : CommentUserInfo, IDisposable, INotifyPropertyChanged, IPath, ITextControl, IMarkupControlData
20
    public class ArrowTextControl : CommentUserInfo, IDisposable, INotifyPropertyChanged, IPath, ITextControl, IMarkupControlData,ICommentRect
21 21
    {
22 22
        private const string PART_ArrowPath = "PART_ArrowPath";
23 23
        private const string PART_TextBox = "PART_ArrowTextBox";
......
1957 1957
            }
1958 1958
        }
1959 1959

  
1960
        public Rect GetCommentRect()
1961
        {
1962
            Rect rect = new Rect();
1963

  
1964
            rect.Location = new Point();
1965
            rect.Size = new Size();
1966

  
1967
            List<Point> points = new List<Point>();
1968

  
1969
            points.AddRange(this.PointSet);
1970

  
1971
            var boxTopleft = new Point(Canvas.GetTop(Base_TextBox), Canvas.GetLeft(Base_TextBox));
1972
            points.Add(boxTopleft);
1973

  
1974
            var boxBottomRight =new Point(boxTopleft.X + Base_TextBox.ActualWidth, boxTopleft.Y + Base_TextBox.ActualHeight);
1975
            points.Add(boxBottomRight);
1976

  
1977
            rect = CommentMath.CalculateBoundingRect(points);
1978

  
1979
            return rect;
1980
        }
1981

  
1960 1982
        public event PropertyChangedEventHandler PropertyChanged; 
1961 1983
        #endregion
1962 1984
    }

내보내기 Unified diff

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