Esempio n. 1
0
        //Implement ISerializable
        public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
        {
            info.AddValue("Text", Text);
            info.AddValue("Offset", Serialization.Serialize.AddPointF(Offset));
            info.AddValue("Opacity", Opacity);
            info.AddValue("Color", Color.ToArgb().ToString());
            info.AddValue("Visible", Visible);

            //Only add if not the defaults eg memeber varaible not null
            if (mFont != null)
            {
                info.AddValue("Font", Serialize.AddFont(mFont));
            }
        }
Esempio n. 2
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Text", Text);
            info.AddValue("Forecolor", Forecolor.ToArgb().ToString());
            info.AddValue("Backcolor", Backcolor.ToArgb().ToString());
            info.AddValue("Indent", Indent);
            if (mFont != null)
            {
                info.AddValue("Font", Serialize.AddFont(mFont));
            }

            info.AddValue("Parent", Parent);
            info.AddValue("Table", Table);

            Serialize.SerializeTag(info, Tag);
        }
Esempio n. 3
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Heading", Heading);
            info.AddValue("SubHeading", SubHeading);
            info.AddValue("HeadingHeight", HeadingHeight);
            info.AddValue("Expanded", Expanded);
            info.AddValue("DrawExpand", DrawExpand);
            info.AddValue("ExpandedSize", Serialize.AddSizeF(ExpandedSize));
            info.AddValue("ContractedSize", Serialize.AddSizeF(ContractedSize));
            info.AddValue("GroupHeight", GroupHeight);
            info.AddValue("RowHeight", RowHeight);
            info.AddValue("Indent", Indent);
            info.AddValue("Font", Serialize.AddFont(Font));
            info.AddValue("Forecolor", Forecolor.ToArgb().ToString());
            info.AddValue("Groups", Groups);
            info.AddValue("Rows", Rows);
            info.AddValue("SelectedItem", SelectedItem);
            info.AddValue("DrawSelectedItem", DrawSelectedItem);

            base.GetObjectData(info, context);
        }