 |
PdfPageElement Class |
Abstract base class for all graphic elements that can be added to a PDF page or template
(text, images, shapes, links). Concrete elements are created directly and placed on a page
with
Add(PdfPageElement). In the full edition this base also carries the
tagging properties used when producing a tagged (accessible) document.
Inheritance HierarchySystemObject SelectPdf.UniversalPdfPageElement More Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic abstract class PdfPageElement
Public MustInherit Class PdfPageElement
The PdfPageElement type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | ActualText |
Gets or sets the exact text represented by this element (the structure element's
/ActualText entry), used when the drawn glyphs do not map to readable text.
|
 | AlternateText |
Gets or sets the alternate text describing this element for assistive technology (the
structure element's /Alt entry). Required on figures for PDF/UA conformance.
|
 | Artifact |
Gets or sets a value indicating whether this element is an artifact — decorative or layout
content that carries no meaning and is excluded from the logical structure (backgrounds,
rules, running headers). Takes precedence over TagType.
|
 | Layer |
Gets or sets the layer (optional content) the element is drawn in: shown and hidden with it in a viewer, printed
as the layer says. Null (default) draws it on the page itself, or in the layer of the template it is added to
(Layer). The layer must belong to the document the element is added to.
|
 | TagType |
Gets or sets the structure type used to tag this element in a tagged (accessible) document.
Ignored unless the document's tagged mode (PdfDocument.Tagged) is enabled. Null
(default) leaves the element untagged unless Artifact is set.
|
Top
ExamplePdfDocument document = new PdfDocument();
PdfPage page = document.AddPage();
PdfRectangleElement rule = new PdfRectangleElement(20, 20, 200, 4);
rule.BackColor = new PdfColor(0, 120, 215);
rule.Artifact = true;
page.Add(rule);
document.Save("out.pdf");
document.Close();Dim document As New PdfDocument()
Dim page As PdfPage = document.AddPage()
Dim rule As New PdfRectangleElement(20, 20, 200, 4)
rule.BackColor = New PdfColor(0, 120, 215)
rule.Artifact = True
page.Add(rule)
document.Save("out.pdf")
document.Close()
See Also
Inheritance Hierarchy