internal EwfTableCell(TableCellSetup setup, IEnumerable <Control> controls) { Setup = setup; Controls = controls.Any() ? controls : "".GetLiteralControl().ToSingleElementArray(); simpleText = null; setObsoleteProperties(); }
internal EwfTableCell(TableCellSetup setup, string text) { Setup = setup; Controls = (text ?? "").GetLiteralControl().ToSingleElementArray(); simpleText = text; setObsoleteProperties(); }
internal EwfTableCell(TableCellSetup setup, Control control) : this(setup, control != null ? control.ToSingleElementArray() : new Control[0]) { }
/// <summary> /// Creates a table cell containing this control. If the control is null, the cell will contain a non-breaking space. If you don't need to pass a setup /// object, don't use this method; controls are implicitly converted to table cells. /// </summary> public static EwfTableCell ToCell(this Control control, TableCellSetup setup) { return(new EwfTableCell(setup, control)); }
/// <summary> /// Creates a table cell containing an HTML-encoded version of this string. If the string is empty, the cell will contain a non-breaking space. If you don't /// need to pass a setup object, don't use this method; strings are implicitly converted to table cells. /// </summary> public static EwfTableCell ToCell(this string text, TableCellSetup setup) { return(new EwfTableCell(setup, text)); }
/// <summary> /// Creates a table cell containing these controls. If no controls exist, the cell will contain a non-breaking space. /// </summary> public static EwfTableCell ToCell(this IEnumerable <Control> controls, TableCellSetup setup = null) { return(new EwfTableCell(setup ?? new TableCellSetup(), controls)); }