protected override void doSerialize(Stream stream) { if(alignment != Alignment.Default) stream.write(alignment.ToString()); else stream.writeNull(); if(style != FontStyle.Default) stream.write(style.ToString()); else stream.writeNull(); if(normal != null) normal.serialize(stream); else stream.writeNull(); if(onNormal != null) onNormal.serialize(stream); else stream.writeNull(); if(hover != null) hover.serialize(stream); else stream.writeNull(); if(onHover != null) onHover.serialize(stream); else stream.writeNull(); if(focused != null) focused.serialize(stream); else stream.writeNull(); if(onFocused != null) onFocused.serialize(stream); else stream.writeNull(); if(active != null) active.serialize(stream); else stream.writeNull(); if(onActive != null) onActive.serialize(stream); else stream.writeNull(); }