VixenModules.Preview.VixenPreview.Shapes.PreviewLine.Clone C# (CSharp) Méthode

Clone() public méthode

public Clone ( ) : object
Résultat object
        public override object Clone()
        {
            PreviewLine newLine = (PreviewLine) this.MemberwiseClone();

            newLine._pixels = new List<PreviewPixel>();

            foreach (PreviewPixel pixel in _pixels) {
                newLine.AddPixel(pixel.X, pixel.Y);
            }
            return newLine;
        }