示例#1
0
        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");
            }
        }
示例#2
0
        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");
        }
示例#3
0
 public static void WriteAttribute(StreamWriter sw, string attributeName, ST_BorderShadow value)
 {
     WriteAttribute(sw, attributeName, value, false);
 }
示例#4
0
 public static void WriteAttribute(StreamWriter sw, string attributeName, ST_BorderShadow value)
 {
     WriteAttribute(sw, attributeName, value, false);
 }