public bool Equals(ST_CellType other) { if (other == null) { return(false); } return(_ooxmlEnumerationValue == other._ooxmlEnumerationValue); }
static ST_CellType() { b = new ST_CellType("b"); d = new ST_CellType("d"); n = new ST_CellType("n"); e = new ST_CellType("e"); s = new ST_CellType("s"); str = new ST_CellType("str"); inlineStr = new ST_CellType("inlineStr"); }
static ST_CellType() { ST_CellType.b = new ST_CellType("b"); ST_CellType.d = new ST_CellType("d"); ST_CellType.n = new ST_CellType("n"); ST_CellType.e = new ST_CellType("e"); ST_CellType.s = new ST_CellType("s"); ST_CellType.str = new ST_CellType("str"); ST_CellType.inlineStr = new ST_CellType("inlineStr"); }
private string WriteCellValue(CellData data, out ST_CellType ct, out String value, out String format) { format = null; if (data.Value == null) { ct = ST_CellType.n; value = null; return(null); } var type = data.Value.GetType(); if (TypeInfo.IsNumericType(type)) { ct = ST_CellType.n; return(value = String.Format(CultureInfo.InvariantCulture, "{0}", data.Value)); } if (type == typeof(DateTime)) { var dt = (DateTime)data.Value; ct = ST_CellType.n; format = "mm-dd-yy"; return(value = String.Format(CultureInfo.InvariantCulture, "{0}", XlioUtil.ToExcelDateTime(dt))); } if (type == typeof(string)) { ct = ST_CellType.s; value = (String)data.Value; return(sharedStrings.Get(value).ToString()); } if (type == typeof(bool)) { ct = ST_CellType.b; return(value = (bool)data.Value == true ? "1" : "0"); } ct = ST_CellType.inlineStr; return(value = String.Format(CultureInfo.InvariantCulture, "{0}", data.Value)); }
public CT_ExternalCell() { this.tField = ST_CellType.n; this.vmField = ((uint)(0)); }
public CT_Cell() { this.sField = ((uint)(0)); this.tField = ST_CellType.n; this.cmField = ((uint)(0)); this.vmField = ((uint)(0)); this.phField = false; }
public CT_ExternalCell() { this.tField = ST_CellType.n; this.vmField = ((uint)(0)); }