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

Last change on this file since 1892 was 1892, checked in by matkovic, 11 years ago

-Fullscreen enhanced
-TextInput added
-Picture scaling added
-Textinput scaling added
-Textinput format command added
-Several style changes
-Progressbar redesigned
-Last log message now appearing
-IControlContainer commenced
-Several icons added
-Plugin state now stored and loaded
-Plugin height and width now storing and loading
-Several misc changes

File size: 1.1 KB
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        /// <summary>
43        /// is the image enabled ?
44        /// </summary>
45        private bool isEnabled = true;
46        public bool IsEnabled { get { return isEnabled; } set { isEnabled = value; } }
47    }
48}
Note: See TracBrowser for help on using the repository browser.