public static void WriteAttribute(StreamWriter sw, string attributeName, ST_BorderShadow value, bool defaultValue) { if (defaultValue == true && (value == ST_BorderShadow.t || value == ST_BorderShadow.@true)) { return; } if (defaultValue == false && (value == ST_BorderShadow.f || value == ST_BorderShadow.@false)) { return; } if (value == ST_BorderShadow.t || value == ST_BorderShadow.@true) { NPOI.OpenXml4Net.Util.XmlHelper.WriteAttribute(sw, attributeName, "t"); } else { NPOI.OpenXml4Net.Util.XmlHelper.WriteAttribute(sw, attributeName, "f"); } }
public static void WriteAttribute(StreamWriter sw, string attributeName, ST_BorderShadow value, bool defaultValue) { if (defaultValue == true && (value ==ST_BorderShadow.t || value ==ST_BorderShadow.@true)) return; if (defaultValue == false && (value ==ST_BorderShadow.f || value ==ST_BorderShadow.@false)) return; if (value ==ST_BorderShadow.t || value ==ST_BorderShadow.@true) NPOI.OpenXml4Net.Util.XmlHelper.WriteAttribute(sw, attributeName, "t"); else NPOI.OpenXml4Net.Util.XmlHelper.WriteAttribute(sw, attributeName, "f"); }
public static void WriteAttribute(StreamWriter sw, string attributeName, ST_BorderShadow value) { WriteAttribute(sw, attributeName, value, false); }