Constructor StructureMark
StructureMark(int, int, StructureRole, string?, string?, TableHeaderScope, int, int)
Initializes the start of a structure element.
public StructureMark(int elementId, int parentElementId, StructureRole role, string? alternateText = null, string? language = null, TableHeaderScope headerScope = TableHeaderScope.None, int columnSpan = 1, int rowSpan = 1)
Parameters
elementIdintStable element identity, unique within the document and positive.
parentElementIdintThe containing element's id, or 0 for a child of the document root.
roleStructureRoleThe element's semantic role.
alternateTextstringAlternate text for a figure, or null.
languagestringBCP 47 language tag where it differs from the document's, or null.
headerScopeTableHeaderScopeHeader scope, meaningful only for TableHeaderCell.
columnSpanintCell column span, or 1.
rowSpanintCell row span, or 1.
Exceptions
- ArgumentOutOfRangeException
elementIdis not positive, or a span is less than 1.