/// <summary> /// Create a GlyphChar and set the character /// </summary> public GlyphChar(GlyphContainer container) : base(container) { Owner = container; Font = new GlyphFont(); GlyphText text = container as GlyphText; if (text != null) { Font.Name = text.Font.Name; Font.Size = text.Font.Size; Font.Style = text.Font.Style; } }
/// <summary> /// Deserialization Constructor /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected GlyphText(SerializationInfo info, StreamingContext context) : base(info, context) { _font = (GlyphFont)info.GetValue("Font", typeof(GlyphFont)); _textRenderingHint = (System.Drawing.Text.TextRenderingHint)info.GetValue("TextRenderingHint", typeof(System.Drawing.Text.TextRenderingHint)); }
/// <summary> /// Deserialization Constructor /// </summary> /// <param name="info"></param> /// <param name="context"></param> public GlyphChar(SerializationInfo info, StreamingContext context) : base(info, context) { _character = (char)info.GetValue("Character", typeof(char)); _font = (GlyphFont)info.GetValue("Font", typeof(GlyphFont)); }
/// <summary> /// The default constructor - XML serialixation only /// </summary> public GlyphChar() : base() { Font = new GlyphFont(); }