示例#1
0
        public IContent CreateRiddle()
        {
            TextParagraph p   = new TextParagraph();
            WritingBox    box = Viewport as WritingBox;

            p.Content = box.Text;
            return(p);
        }
示例#2
0
        public IContent Load(XmlNode node)
        {
            TextParagraph p = new TextParagraph();

            if (p.Load(node))
            {
                return(p);
            }
            return(null);
        }
示例#3
0
        public bool ToViewport(IContent content)
        {
            TextParagraph p = content as TextParagraph;

            if (p == null)
            {
                return(false);
            }
            WritingBox b = new WritingBox();

            b.Text   = p.Content;
            Viewport = b;
            return(true);
        }