コード例 #1
0
ファイル: Extensions.cs プロジェクト: dotnet/ef6tools
        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;
        }
コード例 #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;
 }