public static void SetTextRange(this XObject attribute, TextRange textRange) { var saa = attribute.Annotation <XmlAttributeAnnotation>(); if (saa == null) { saa = new XmlAttributeAnnotation(); attribute.AddAnnotation(saa); } saa.TextRange = textRange; }
public static void SetTextRange(this XObject attribute, TextRange textRange) { var saa = attribute.Annotation<XmlAttributeAnnotation>(); if (saa == null) { saa = new XmlAttributeAnnotation(); attribute.AddAnnotation(saa); } saa.TextRange = textRange; }