public Label GetDataLabel(Data data) { FileComponent cmp = data.Prev; while (cmp != null) { if (cmp is Data) return null; if (cmp is Label) return cmp as Label; cmp = cmp.Prev; } return null; }
public override string GetString() { if (FileParser.GetDataLabel(this) != null) { // If a label points directly to this data, it can't be // shortened Elongate(); } else { Shorten(); // Try to, anyway } return(base.GetString()); }