/// <summary>
        /// Gets the Margin property
        /// </summary>
        private void ExtractMargin()
        {
            // get the margin property
            Margin m = new Margin();
            m.Left = Int32.Parse(this.tokenizer.NextToken());
            m.Top = Int32.Parse(this.tokenizer.NextToken());
            m.Bottom = Int32.Parse(this.tokenizer.NextToken());
            m.Right = Int32.Parse(this.tokenizer.NextToken());

            // update the property
            if (style == MAINSECTIONTASKSS)
            {
                if (section == DESTINATIONTASK)
                {
                    info.TaskItem.Margin = m;
                }
                else if (section == ACTIONTASK)
                {
                    info.TaskItem.Margin = m;
                }
            }
            else if (style == SECTIONTASKSS)
            {
                if (section == DESTINATIONTASK)
                {
                    info.TaskItem.Margin = m;
                }
                else if (section == ACTIONTASK)
                {
                    info.TaskItem.Margin = m;
                }
            }
        }
            /// <summary>
            /// Populates the TaskItemInfoSurrogate with data that is to be 
            /// serialized from the specified TaskItemInfo
            /// </summary>
            /// <param name="taskItemInfo">The TaskItemInfo that contains the data 
            /// to be serialized</param>
            public void Load(TaskItemInfo taskItemInfo)
            {
                this.Padding = taskItemInfo.Padding;
                this.Margin = taskItemInfo.Margin;

                this.LinkNormal = ThemeManager.ConvertColorToString(taskItemInfo.LinkColor);
                this.LinkHot = ThemeManager.ConvertColorToString(taskItemInfo.HotLinkColor);

                this.FontDecoration = taskItemInfo.FontDecoration;
            }
            protected TaskItemInfoSurrogate(SerializationInfo info, StreamingContext context)
                : base()
            {
                int version = info.GetInt32("Version");

                this.Padding = (Padding) info.GetValue("Padding", typeof(Padding));
                this.Margin = (Margin) info.GetValue("Margin", typeof(Margin));

                this.LinkNormal = info.GetString("LinkNormal");
                this.LinkHot = info.GetString("LinkHot");

                this.FontDecoration = (FontStyle) info.GetValue("FontDecoration", typeof(FontStyle));
            }
            /// <summary>
            /// Initializes a new instance of the TaskItemInfoSurrogate class with default settings
            /// </summary>
            public TaskItemInfoSurrogate()
            {
                this.Padding = Padding.Empty;
                this.Margin = Margin.Empty;

                this.LinkNormal = ThemeManager.ConvertColorToString(Color.Empty);
                this.LinkHot = ThemeManager.ConvertColorToString(Color.Empty);

                this.FontDecoration = FontStyle.Regular;
            }
 /// <summary>
 /// Forces the use of default empty values
 /// </summary>
 public void SetDefaultEmptyValues()
 {
     this.padding = Padding.Empty;
     this.margin = Margin.Empty;
     this.linkNormal = Color.Empty;
     this.linkHot = Color.Empty;
     this.fontDecoration = FontStyle.Underline;
 }
        /// <summary>
        /// Initializes a new instance of the TaskLinkInfo class with default settings
        /// </summary>
        public TaskItemInfo()
        {
            // set padding values
            this.padding = new Padding(6, 0, 4, 0);

            // set margin values
            this.margin = new Margin(0, 4, 0, 0);

            // set text values
            this.linkNormal = SystemColors.ControlText;
            this.linkHot = SystemColors.ControlText;

            this.fontDecoration = FontStyle.Underline;

            this.owner = null;
        }