/// <summary> /// Create a new instance of datasource item /// </summary> public DataSourceItem() { fields = new FieldItemCollection(this); }
internal void SetCollection(FieldItemCollection col) { collection = col; }
private double GetFieldHeaderHeight(FieldItemCollection collection, System.Drawing.Font font) { double height = 0; double fontHeight = GetFontHeight(font); double maxHeight = 0; foreach (FieldItem field in collection) { if (field.NewLine) { height += maxHeight; maxHeight = 0; } maxHeight = Math.Max(maxHeight, GetStringHeight(field.Caption, fontHeight)); } height += maxHeight; return height; }