public static PDFName GetNameForContentType(PDFMarkedContentType contentType) { switch (contentType) { case PDFMarkedContentType.Text: return(TextMarkedContent); default: throw new ArgumentOutOfRangeException(nameof(contentType)); } }
public PDFLayoutMarkedContentBegin AddMarkedContentStart(IPDFLayoutEngine engine, IPDFComponent component, PDFMarkedContentType type) { PDFLayoutMarkedContentBegin begin = new PDFLayoutMarkedContentBegin(this, component, type); this.Runs.Add(begin); return(begin); }
public PDFLayoutMarkedContentBegin(PDFLayoutLine line, IPDFComponent owner, PDFMarkedContentType type) : base(line, owner) { this.ContentType = type; }