// one:QuickStyleDef possibles: // fontColor="automatic" highlightColor="automatic" font="Calibri" fontSize="11.0" spaceBefore="0.0" spaceAfter="0.0" /> private void CollectQuickStyleProperties (XElement element) { var index = element.Attribute("quickStyleIndex")?.Value; if (index != null) { var ns = page.GetNamespaceOfPrefix("one"); var quick = page.Elements(ns + "QuickStyleDef") .FirstOrDefault(e => e.Attribute("index").Value.Equals(index)); if (quick != null) { QuickStyleDef.CollectStyleProperties(quick, properties); } } }
public QuickRef(XElement element) { Element = element; Style = new QuickStyleDef(element); OriginalIndex = Style.Index.ToString(); }