Beispiel #1
0
        //建立一个副本
        override public object cloneObject()
        {
            MemoryStream    stream    = new MemoryStream();
            BinaryFormatter binFormat = new BinaryFormatter();

            binFormat.Serialize(stream, this);
            stream.Position = 0;
            SVLabel result = (SVLabel)binFormat.Deserialize(stream);

            result.refreshPropertyToPanel();

            return(result);
        }