Class SetTextMarkerCommandSettings
Sets a spelling or grammar error marker on the given range of text. See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.
public sealed class SetTextMarkerCommandSettings : ICommand
- Inheritance
-
SetTextMarkerCommandSettings
- Implements
- Inherited Members
Properties
BackendNodeId
Identifier of the backend node.
[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }
Property Value
- long?
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
End
End offset (exclusive) in the same units and space as start.
[JsonPropertyName("end")]
public long End { get; set; }
Property Value
NodeId
Identifier of the node.
[JsonPropertyName("nodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? NodeId { get; set; }
Property Value
- long?
ObjectId
JavaScript object id of the node wrapper.
[JsonPropertyName("objectId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ObjectId { get; set; }
Property Value
Start
Start offset into the element's rendered text in UTF-16 code units. For a text control, an offset into the control's value. Offsets count text in DOM order and do not enter shadow trees. To mark text inside a shadow tree, pass the element inside the shadow tree.
[JsonPropertyName("start")]
public long Start { get; set; }
Property Value
Type
The type of marker to set on the given range of text.
[JsonPropertyName("type")]
public string Type { get; set; }