OSDN Git Service

.0
[psychlops/silverlight.git] / dev3 / psychlops / core / graphic / font.cs
index 981b478..e3a4b41 100644 (file)
@@ -59,7 +59,7 @@ namespace Psychlops
                protected string str_;\r
                protected Font font_;\r
                protected double width_, height_;\r
-               public Point datum;\r
+               public Point datum { get; set; }\r
 \r
                public enum HorizontalAlign { not_specified=-1, left=0, center, right };\r
                //public const HorizontalAlign NOT_SPECIFIED=HorizontalAlign.not_specified, TEXT_ALIGN_LEFT=HorizontalAlign.left, TEXT_ALIGN_CENTER = HorizontalAlign.center, TEXT_ALIGN_RIGHT=HorizontalAlign.right;\r
@@ -106,7 +106,7 @@ namespace Psychlops
                }\r
                public Figure shift(Point p)\r
                {\r
-                       datum += p;\r
+                       datum = datum + p;\r
                        return this;\r
                }\r
                public Letters locate(Point p)\r
@@ -116,7 +116,7 @@ namespace Psychlops
                }\r
                public Letters locate(double x, double y)\r
                {\r
-                       datum.set(x,y);\r
+                       datum = new Point(x,y);\r
                        return this;\r
                }\r
 \r