public Span Clone() { var newSpan = new Span(); if (Begin != null) { newSpan.Begin = Begin.Clone(); } newSpan.BeginFlags = BeginFlags; newSpan.Color = Color; newSpan.Continuation = Continuation; if (End != null) { newSpan.End = End.Clone(); } newSpan.EndFlags = EndFlags; newSpan.Escape = Escape; if (Exit != null) { newSpan.Exit = Exit.Clone(); } newSpan.ExitFlags = ExitFlags; newSpan.NextColor = NextColor; newSpan.Rule = Rule; newSpan.StopAtEol = StopAtEol; newSpan.TagColor = TagColor; newSpan.BeginTagColor = beginTagColor; newSpan.EndTagColor = endTagColor; return(newSpan); }
public virtual Line Clone() { // return new Line (this); //return new Line(new Point(Begin.X, Begin.Y), new Point(End.X, End.Y)); return(new Line(Begin.Clone(), End.Clone())); }