/// <summary> /// Deserialization Constructor /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected GlyphBase(SerializationInfo info, StreamingContext context) { _panel = (GlyphPanel)info.GetValue("Panel", typeof(GlyphPanel)); _size = (Size)info.GetValue("Size", typeof(System.Drawing.Size)); _position = (PointF)info.GetValue("Position", typeof(PointF)); ForegroundColor = (IColor)info.GetValue("ForegroundColor", typeof(IColor)); BackgroundColor = (IColor)info.GetValue("BackgroundColor", typeof(IColor)); _owner = (GlyphContainer)info.GetValue("Owner", typeof(GlyphContainer)); Tag = (object)info.GetValue("Tag", typeof(object)); }
/// <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> /// The constructor /// </summary> public GlyphResource(ResourceKey resourceKey, GlyphContainer container) : base(container) { _resourceKey = resourceKey; }
/// <summary> /// The constructor /// </summary> public GlyphImage(GlyphContainer container) : base(container) { }
/// <summary> /// The constructor /// </summary> public GlyphText(GlyphContainer container) : base(container) { }
/// <summary> /// The constructor /// </summary> protected GlyphBase(GlyphContainer container) : this() { _owner = container; container.Glyphs.Add(this); }
/// <summary> /// The constructor /// </summary> protected GlyphContainer(GlyphContainer container) : base(container) { // Size = container.Size; Position = container.Position; LayoutEngine = new CanvasLayoutEngine(); }
/// <summary> /// the constructor. /// </summary> public GlyphRectangle(GlyphContainer container) : base(container) { }
/// <summary> /// The constructor /// </summary> protected GlyphShape(GlyphContainer container) : base(container) { }