diff --git a/ReoGrid/IO/ExcelReader.cs b/ReoGrid/IO/ExcelReader.cs index 25696097..b5d346dc 100644 --- a/ReoGrid/IO/ExcelReader.cs +++ b/ReoGrid/IO/ExcelReader.cs @@ -2489,6 +2489,11 @@ private static void AddRunIntoRichText(Document doc, RichText rt, Run r) foreColor = doc.ConvertFromCompColor(rpr.solidFill); } + if (rpr.strike != null) + { + fontStyles |= Drawing.Text.FontStyles.Strikethrough; + } + if (rpr.b != null) { fontStyles |= Drawing.Text.FontStyles.Bold; diff --git a/ReoGrid/IO/ExcelSchame.cs b/ReoGrid/IO/ExcelSchame.cs index fcea72a1..40c24ae2 100644 --- a/ReoGrid/IO/ExcelSchame.cs +++ b/ReoGrid/IO/ExcelSchame.cs @@ -1532,6 +1532,9 @@ public class RunProperty [XmlElement("sz")] public ElementValue size; + [XmlElement("strike")] + public ElementValue strike; + [XmlElement("b")] public ElementValue b; diff --git a/ReoGrid/IO/ExcelWriter.cs b/ReoGrid/IO/ExcelWriter.cs index 2ed257b2..5d777e8f 100644 --- a/ReoGrid/IO/ExcelWriter.cs +++ b/ReoGrid/IO/ExcelWriter.cs @@ -820,6 +820,11 @@ private static int AddSharedString(Document doc, Drawing.RichText rt) //schema = "minor", }; + if ((r.FontStyles & Drawing.Text.FontStyles.Strikethrough) == Drawing.Text.FontStyles.Strikethrough) + { + rpr.strike = new ElementValue(); + } + if ((r.FontStyles & Drawing.Text.FontStyles.Bold) == Drawing.Text.FontStyles.Bold) { rpr.b = new ElementValue();