source: trunk/CrypPlugins/WorkspaceManager/Model/TextModel.cs @ 1847

Last change on this file since 1847 was 1847, checked in by kopal, 11 years ago
  • added support for serializing/deserializing pictures into model files
File size: 963 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace WorkspaceManager.Model
7{
8    /// <summary>
9    /// This class wraps a text which can be put to the workspace
10    /// </summary>
11    [Serializable]
12    public class TextModel : VisualElementModel
13    {
14        private string text = null;
15
16        /// <summary>
17        /// Instantiate a new TextModel
18        /// </summary> 
19        public TextModel()
20        {
21            this.text = "";
22        }
23
24        /// <summary>
25        /// Instantiate a new TextModel
26        /// </summary>
27        /// <param name="text"></param>
28        public TextModel(string text)
29        {
30            this.text = text;
31        }
32
33        /// <summary>
34        /// Get/Set the text
35        /// </summary>
36        public string Text
37        {
38            get { return this.text; }
39            set { this.text = value; }
40        }
41    }
42}
Note: See TracBrowser for help on using the repository browser.