public static void EnsureAnnotation(this XElement element) { var sfa = element.Annotation <XmlFileAnnotation>(); if (sfa == null) { sfa = new XmlFileAnnotation(); element.AddAnnotation(sfa); } }
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 EnsureAnnotation(this XElement element) { var sfa = element.Annotation<XmlFileAnnotation>(); if (sfa == null) { sfa = new XmlFileAnnotation(); element.AddAnnotation(sfa); } }
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; }