PeachDrawing.Core

PeachDrawing.Core

SemanticInfo Class

What a reader of a drawing - a person using assistive technology - is told about an area of it: what it is, what it is called and what state it is in. Handed to AddSemanticRegion(Rect, SemanticInfo); a canvas for a format that can carry it (SVG) writes it, and the others ignore it.

public sealed record SemanticInfo : System.IEquatable<PeachDrawing.Core.SemanticInfo>

Inheritance System.Object → SemanticInfo

Implements System.IEquatable<SemanticInfo>

Constructors  
SemanticInfo(string) What a reader of a drawing - a person using assistive technology - is told about an area of it: what it is, what it is called and what state it is in. Handed to AddSemanticRegion(Rect, SemanticInfo); a canvas for a format that can carry it (SVG) writes it, and the others ignore it.
Properties  
Description A longer description of it, or null.
Id A name for the area that is unique in the document, so that another can refer to it, or null.
Language The language of its content as a BCP 47 tag when it differs from the document’s, or null.
Level The level of a heading, or 0 for none.
Name What the area is called, or null when it has no name.
Properties Its other WAI-ARIA states and properties by attribute name, such as aria-checked = true or aria-expanded = false; null when there are none.
Role the kind of thing it is, as a WAI-ARIA role name such as heading, navigation or button