Пример #1
0
        public override object Clone()
        {
            Refe obj = new Refe(this.Direction);

            obj.Secondary = this.Secondary;
            if (Values != null)
            {
                obj.Values = this.Values.Clone();
            }
            if (Labels != null)
            {
                obj.Labels = this.Labels.Clone();
            }
            if (Type != null)
            {
                obj.Type = (string[])this.Type.Clone();
            }
            if (Color != null)
            {
                obj.Color = (string[])this.Color.Clone();
            }
            if (Size != null)
            {
                obj.Size = (string[])this.Size.Clone();
            }
            obj.FontSize  = this.FontSize;
            obj.FontColor = this.FontColor;
            obj.Bold      = this.Bold;
            obj.Italic    = this.Italic;
            obj.Angle     = this.Angle;
            if (this.Offset != null)
            {
                obj.Offset = (double[])Offset.Clone();
            }
            if (this.Placement != null)
            {
                obj.Offset = (double[])Placement.Clone();
            }

            return(obj);

            //(FontColor
            //(FontSize >
            //(Bold) cmnd
            //(Italic) cm
            //(Underline)
            //(Angle < Mt
            //(Offset !=
            //(Placement
        }