/// <summary> /// Instantiate a new GlyphPanel object /// </summary> /// <param name="glyph"></param> public GlyphPanel(GlyphBase glyph) { _associatedGlyph = glyph; _padding = 0.0; _position = new PointF(0f, 0f); _size = SizeF.Empty; _layout = PanelLayoutMode.None; _opacity = 1.0; }
/// <summary> /// Deserialization Constructor /// </summary> /// <param name="info"></param> /// <param name="context"></param> protected GlyphPanel(SerializationInfo info, StreamingContext context) { _padding = (double)info.GetValue("Padding", typeof(double)); _size = (SizeF)info.GetValue("Size", typeof(SizeF)); _position = (PointF)info.GetValue("Position", typeof(PointF)); _color = (IColor)info.GetValue("Color", typeof(IColor)); _layout = (PanelLayoutMode)info.GetValue("PanelLayoutMode", typeof(PanelLayoutMode)); _geoFilter = (GeometryFilter)info.GetValue("Transform", typeof(Filter)); // _associatedGlyph = }