public CFHeaderRecord(RecordInputStream in1) { field_1_numcf = in1.ReadShort(); field_2_need_recalculation = in1.ReadShort(); field_3_enclosing_cell_range = new CellRangeAddress(in1); field_4_cell_ranges = new CellRangeAddressList(in1); }
public CellRangeAddressList Copy() { CellRangeAddressList result = new CellRangeAddressList(); int nItems = _list.Count; for (int k = 0; k < nItems; k++) { CellRangeAddress region = (CellRangeAddress)_list[k]; result.AddCellRangeAddress(region.Copy()); } return(result); }
/** Creates new CFHeaderRecord */ public CFHeaderRecord() { field_4_cell_ranges = new CellRangeAddressList(); }
/** * Constructor which initializes the cell range on which this object will be * applied * @param constraint */ public HSSFDataValidation(CellRangeAddressList regions, DVConstraint constraint) { _regions = regions; _constraint = constraint; }
public CellRangeAddressList Copy() { CellRangeAddressList result = new CellRangeAddressList(); int nItems = _list.Count; for (int k = 0; k < nItems; k++) { CellRangeAddress region = (CellRangeAddress)_list[k]; result.AddCellRangeAddress(region.Copy()); } return result; }
public DVRecord(int validationType, int operator1, int errorStyle, bool emptyCellAllowed, bool suppressDropDownArrow, bool isExplicitList, bool showPromptBox, String promptTitle, String promptText, bool showErrorBox, String errorTitle, String errorText, Ptg[] formula1, Ptg[] formula2, CellRangeAddressList regions) { int flags = 0; flags = opt_data_type.SetValue(flags, validationType); flags = opt_condition_operator.SetValue(flags, operator1); flags = opt_error_style.SetValue(flags, errorStyle); flags = opt_empty_cell_allowed.SetBoolean(flags, emptyCellAllowed); flags = opt_suppress_dropdown_arrow.SetBoolean(flags, suppressDropDownArrow); flags = opt_string_list_formula.SetBoolean(flags, isExplicitList); flags = opt_show_prompt_on_cell_selected.SetBoolean(flags, showPromptBox); flags = opt_show_error_on_invalid_value.SetBoolean(flags, showErrorBox); _option_flags = flags; _promptTitle = ResolveTitleText(promptTitle); _promptText = ResolveTitleText(promptText); _errorTitle = ResolveTitleText(errorTitle); _errorText = ResolveTitleText(errorText); _formula1 = formula1; _formula2 = formula2; _regions = regions; }
/** * Constructs a DV record and Sets its fields appropriately. * * @param in the RecordInputstream to Read the record from */ public DVRecord(RecordInputStream in1) { _option_flags = in1.ReadInt(); _promptTitle = ReadUnicodeString(in1); _errorTitle = ReadUnicodeString(in1); _promptText = ReadUnicodeString(in1); _errorText = ReadUnicodeString(in1); int field_size_first_formula = in1.ReadUShort(); _not_used_1 = in1.ReadShort(); //read first formula data condition _formula1 = Ptg.ReadTokens(field_size_first_formula, in1); int field_size_sec_formula = in1.ReadUShort(); _not_used_2 = in1.ReadShort(); //read sec formula data condition _formula2 = Ptg.ReadTokens(field_size_sec_formula, in1); //read cell range address list with all affected ranges _regions = new CellRangeAddressList(in1); }