Docsv3.31.0
Back to API Reference
Class

SemanticModifier

Inherits:BaseModifier

Publishes platform-neutral meaning, spoken text, states, actions and final bounds for range entities. Native accessibility integrations consume UniTextSemantics.For instead of being named or invoked by this modifier.

public string Label{ get; set }

Accessible name; empty may derive from covered text.

public string Value{ get; set }

Current represented value.

public string Hint{ get; set }

Additional usage guidance.

public string Language{ get; set }

BCP 47 language tag, or empty to inherit.

public TextSemanticRole Role{ get; set }

Platform-neutral meaning of the entity.

public TextSemanticStates States{ get; set }

Authored semantic states.

public TextSemanticActions Actions{ get; set }

Actions exposed to accessibility and project adapters.

public int Priority{ get; set }

Explicit conflict priority for duplicate semantic descriptions.

public bool DeriveLabelFromText{ get; set }

Whether empty labels derive from covered rendered text.

public RangeChannel Channel{ get; set }

Explicit semantic channel, or null to inherit the source channel.

protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void BeforeApply()
protected override void OnApply(in RangeApplyContext context)