Skip to content

# PDFAttributeClassMap

Namespace: O2S.Components.PDF4NET.LogicalStructure

Defines mappings between names and attributes or attribute collections.

    public class PDFAttributeClassMap

Inheritance Object → PDFAttributeClassMap

## Constructors

### PDFAttributeClassMap()

Initializes a new PDFAttributeClassMap object.

    public PDFAttributeClassMap()

## Properties

### CosDictionary

Gets the underlying COS object.

    public PDFCosDictionary CosDictionary { get; }

Property Value

PDFCosDictionary
A PDFCosDictionary object representing the underlying COS object.

## Methods

### CreateMapping(String, PDFStructureElementAttribute)

Creates a mapping between a name and an attribute.

    public void CreateMapping(string name, PDFStructureElementAttribute attribute)

Parameters

`name` String
The attribute name.

`attribute` PDFStructureElementAttribute
A PDFStructureElementAttribute object that represents the attribute.

Remarks

The name used with this method must be used when filling the PDFStructureElement.ClassNames property.

### CreateMapping(String, PDFStructureElementAttributeCollection)

Creates a mapping between a name and an attribute collection.

    public void CreateMapping(string name, PDFStructureElementAttributeCollection attributes)

Parameters

`name` String
The attribute name.

`attributes` PDFStructureElementAttributeCollection
A PDFStructureElementAttributeCollection object that represents the set of attribute.

Remarks

The name used with this method must be used when filling the PDFStructureElement.ClassNames property.

### GetNames()

Gets the names in this map.

    public String[] GetNames()

Returns

String[]
An array of strings representing the names in this map.

### RemoveMapping(String)

Removes the mapping for the specified name.

    public void RemoveMapping(string name)

Parameters

`name` String
The name for which to remove the mapping.