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/TextStyle.cs

30 lines
910 B

using System;
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel.Flow
{
public class TextStyle : IBinarySerializable
{
public TextFormatting Formatting = TextFormatting.None;
public TextSize Size = TextSize.Normal;
public string HexColor = "#000000";
public string HexMarkerColor = "#ffaaff";
public void Serialize(IBinaryWriter writer)
{
writer.WriteInt32((Int32)Formatting);
writer.WriteInt32((Int32)Size);
writer.WriteString(HexColor);
writer.WriteString(HexMarkerColor);
}
public void Deserialize(IBinaryReader reader)
{
Formatting = (TextFormatting)reader.ReadInt32();
Size = (TextSize)reader.ReadInt32();
HexColor = reader.ReadString();
HexMarkerColor = reader.ReadString();
}
}
}

Powered by TurnKey Linux.