Exemple #1
0
 /// <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));
 }
Exemple #2
0
        /// <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;
            }
        }
Exemple #3
0
 /// <summary>
 /// The constructor
 /// </summary>
 public GlyphResource(ResourceKey resourceKey, GlyphContainer container) : base(container)
 {
     _resourceKey = resourceKey;
 }
Exemple #4
0
 /// <summary>
 /// The constructor
 /// </summary>
 public GlyphImage(GlyphContainer container) : base(container)
 {
 }
Exemple #5
0
 /// <summary>
 /// The constructor
 /// </summary>
 public GlyphText(GlyphContainer container) : base(container)
 {
 }
Exemple #6
0
 /// <summary>
 /// The constructor
 /// </summary>
 protected GlyphBase(GlyphContainer container) : this()
 {
     _owner = container;
     container.Glyphs.Add(this);
 }
Exemple #7
0
        /// <summary>
        /// The constructor
        /// </summary>
        protected GlyphContainer(GlyphContainer container) : base(container)
        {
//                Size = container.Size;
            Position     = container.Position;
            LayoutEngine = new CanvasLayoutEngine();
        }
Exemple #8
0
 /// <summary>
 /// the constructor.
 /// </summary>
 public GlyphRectangle(GlyphContainer container) : base(container)
 {
 }
Exemple #9
0
 /// <summary>
 /// The constructor
 /// </summary>
 protected GlyphShape(GlyphContainer container) : base(container)
 {
 }