Example #1
0
        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;
        }
Example #2
0
 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;
 }