Reorganized FormattedTextItems
This commit is contained in:
parent
b85fabc8ea
commit
b74453497b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user