Class ContentTag
- Namespace
- Rustaveli.Pdf
- Assembly
- Rustaveli.Pdf.dll
The part content plays in a document's structure — a heading, a paragraph, a figure and what it shows — as a tagged PDF records it for screen readers, reflow and search.
public sealed class ContentTag
- Inheritance
-
ContentTag
- Inherited Members
Remarks
Tags are the standard structure types of PDF, named here in words: Paragraph is P,
Heading(int) of level 1 is H1. They are written only when the export is tagged; otherwise tagged
content is drawn exactly as it would be untagged.
Properties
AlternateText
What a figure or formula shows, read in its place; null for other tags.
public string? AlternateText { get; }
Property Value
Article
A piece complete in itself, such as a story in a newspaper.
public static ContentTag Article { get; }
Property Value
BlockQuote
One or more paragraphs quoted from elsewhere.
public static ContentTag BlockQuote { get; }
Property Value
Caption
The caption of a figure or table.
public static ContentTag Caption { get; }
Property Value
Code
Computer code.
public static ContentTag Code { get; }
Property Value
Contents
A table of contents, made of ContentsEntry content and nested tables of contents.
public static ContentTag Contents { get; }
Property Value
ContentsEntry
One entry in a table of contents.
public static ContentTag ContentsEntry { get; }
Property Value
Division
A group of content with no more particular part to play.
public static ContentTag Division { get; }
Property Value
Expansion
The words an abbreviation stands for, read in its place; null for other tags.
public string? Expansion { get; }
Property Value
Index
An index of terms and where they appear.
public static ContentTag Index { get; }
Property Value
List
A list, made of ListItem content. Lists composed as lists are tagged without asking.
public static ContentTag List { get; }
Property Value
ListBody
The content of a list item, beside its label.
public static ContentTag ListBody { get; }
Property Value
ListItem
public static ContentTag ListItem { get; }
Property Value
ListLabel
The bullet or number of a list item.
public static ContentTag ListLabel { get; }
Property Value
Note
A footnote or endnote.
public static ContentTag Note { get; }
Property Value
Paragraph
A paragraph. Text that is not inside other tagged content is tagged a paragraph without asking.
public static ContentTag Paragraph { get; }
Property Value
Quote
Words quoted within a paragraph.
public static ContentTag Quote { get; }
Property Value
Role
The name PDF gives the tag, such as P, H1 or Figure.
public string Role { get; }
Property Value
Section
A section of a chapter or article, usually opening with a heading.
public static ContentTag Section { get; }
Property Value
Span
Words within a paragraph set apart for no more particular reason, such as a change of language.
public static ContentTag Span { get; }
Property Value
Table
A table of data. A table composed inside is tagged row by row and cell by cell, its header rows as headings of their columns.
public static ContentTag Table { get; }
Property Value
Methods
Abbreviation(string)
An abbreviation, read as the words in expansion.
public static ContentTag Abbreviation(string expansion)
Parameters
expansionstring
Returns
Figure(string)
A picture, chart or diagram, read as alternateText. Everything drawn inside belongs to it;
images and drawings outside any figure are taken as decoration.
public static ContentTag Figure(string alternateText)
Parameters
alternateTextstring
Returns
Formula(string)
A mathematical formula, read as alternateText.
public static ContentTag Formula(string alternateText)
Parameters
alternateTextstring
Returns
Heading(int)
A heading, from level 1 for the outermost to level 6.
public static ContentTag Heading(int level)
Parameters
levelint
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.