public override string ToString() { var trace = new StringBuilder(); trace.AppendLine($"Contents of {GetType().Name}:"); trace.AppendLine($" Points: {DrawingUtils.FormatPointsAsString(Points)}"); trace.AppendLine($" Border: {Border}"); trace.AppendLine($" BorderWidth: {BorderWidth}"); trace.AppendLine($" Fill: {Fill}"); trace.AppendLine($" Width: {Width}"); trace.AppendLine($" Height: {Height}"); return(trace.ToString()); }
public override string ToString() { var trace = new StringBuilder(); var pointsTrace = DrawingUtils.FormatPointsAsString(Points); trace.AppendLine($"Contents of {GetType().Name}"); trace.AppendLine($" Levels: {Levels}"); trace.AppendLine($" BorderColor: {BorderColor}"); trace.AppendLine($" FillColor: {FillColor}"); trace.AppendLine($" BackgroundColor: {BackgroundColor}"); trace.AppendLine($" LineWidth: {LineWidth}"); trace.AppendLine($" Points: {pointsTrace}"); return(trace.ToString()); }