Reorganized FormattedTextItems

This commit is contained in:
Michael Becker 2014-12-27 02:11:15 -05:00
parent b85fabc8ea
commit b74453497b
2 changed files with 0 additions and 43 deletions

View File

@ -1,23 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.ObjectModels.Text.Formatted.Items
{
public class Container : FormattedTextItem
{
private FormattedTextItem.FormattedTextItemCollection mvarItems = new FormattedTextItemCollection();
public FormattedTextItem.FormattedTextItemCollection Items { get { return mvarItems; } }
public override object Clone()
{
Container clone = new Container();
foreach (FormattedTextItem item in mvarItems)
{
clone.Items.Add(item.Clone() as FormattedTextItem);
}
return clone;
}
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.ObjectModels.Text.Formatted.Items
{
public class Literal : FormattedTextItem
{
private string mvarText = String.Empty;
public string Text { get { return mvarText; } set { mvarText = value; } }
public override object Clone()
{
Literal clone = new Literal();
clone.Text = (mvarText.Clone() as string);
return clone;
}
}
}