You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DOM/Model/Flow/Text.cs

38 lines
913 B

using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel.Flow
{
public class Text :
ContentElement
{
public string Value { get; set; }
public TextStyle Style = new TextStyle();
public Text() : base(ContentElementType.Text)
{
}
public Text(string value) :
base(ContentElementType.Text)
{
this.Value = value;
}
public Text(IBinaryReader reader) :
base(ContentElementType.Text)
{
Deserialize(reader);
}
public override void Deserialize(IBinaryReader reader)
{
Value = reader.ReadString();
Style.Deserialize(reader);
}
public override void Serialize(IBinaryWriter writer)
{
writer.WriteString(Value);
Style.Serialize(writer);
}
}
}

Powered by TurnKey Linux.