public override string ToString() { StringBuilder RetVal = new StringBuilder(); RetVal.Append($"{BookType.ToString().PadRight(8, '.') } | "); RetVal.Append($"{CollectionName.PadRight(80, '.')} | "); if (!string.IsNullOrWhiteSpace(Number)) { RetVal.Append($"{Number.PadRight(6, '.')} | "); } if (!string.IsNullOrWhiteSpace(Name)) { RetVal.Append($"{Name.PadRight(80, '.')} | "); } RetVal.Append($"{RelativePath}"); return(RetVal.ToString()); }