private void CollectFromObjectElement(XElement element, CssInfo info, List <IStyleInfo> templates) { CollectFromSpan(element, info); var a = element.Attribute("quickStyleIndex"); if (a != null) { var template = templates.Where(e => a.Value.Equals(e.Index)).FirstOrDefault(); if (template != null) { info.Collect(template); } } a = element.Attribute("spaceBefore"); if (a != null) { info.SpaceBefore = a.Value; } a = element.Attribute("spaceAfter"); if (a != null) { info.SpaceAfter = a.Value; } }
private void CollectFromSpan(XElement element, CssInfo info) { var spanstyle = element.Attributes("style").Select(a => a.Value).FirstOrDefault(); if (spanstyle != null) { info.Collect(spanstyle); } }