public static void SetTextRange(this XElement element, ElementTextRange textRange) { var sfa = element.Annotation <XmlFileAnnotation>(); if (sfa == null) { sfa = new XmlFileAnnotation(); element.AddAnnotation(sfa); } sfa.TextRange = textRange; }
public static void SetTextRange(this XElement element, ElementTextRange textRange) { var sfa = element.Annotation<XmlFileAnnotation>(); if (sfa == null) { sfa = new XmlFileAnnotation(); element.AddAnnotation(sfa); } sfa.TextRange = textRange; }