Пример #1
0
 public void Context_Tag_Strong()
 {
     TestRuntime.AssertXcodeVersion(11, 0);
     using (var url = new NSUrl(filename))
         using (var ctx = new CGContextPDF(url)) {
             var tp = new CGPdfTagProperties()
             {
                 ActualText      = "ActualText",
                 AlternativeText = "AlternativeText",
                 TitleText       = "TitleText",
                 LanguageText    = "LanguageText",
             };
             ctx.BeginPage(PDFInfoTest.GetInfo());
             ctx.BeginTag(CGPdfTagType.Header, tp);
             ctx.EndTag();
             ctx.BeginTag(CGPdfTagType.Caption, (CGPdfTagProperties)null);
             ctx.SetUrl(url, CGRect.Empty);
             ctx.EndTag();
             ctx.EndPage();
         }
 }
Пример #2
0
        public void BeginTag(CGPdfTagType tagType, CGPdfTagProperties tagProperties)
        {
            var d = tagProperties?.Dictionary;

            CGPDFContextBeginTag(Handle, tagType, d.GetHandle());
        }