Table of Contents

Constructor StructureMark

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

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

elementId int

Stable element identity, unique within the document and positive.

parentElementId int

The containing element's id, or 0 for a child of the document root.

role StructureRole

The element's semantic role.

alternateText string

Alternate text for a figure, or null.

language string

BCP 47 language tag where it differs from the document's, or null.

headerScope TableHeaderScope

Header scope, meaningful only for TableHeaderCell.

columnSpan int

Cell column span, or 1.

rowSpan int

Cell row span, or 1.

Exceptions

ArgumentOutOfRangeException

elementId is not positive, or a span is less than 1.