Class HighlightRectCommandSettings
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. Issue: the method does not handle device pixel ratio (DPR) correctly. The coordinates currently have to be adjusted by the client if DPR is not 1 (see crbug.com/437807128).
public sealed class HighlightRectCommandSettings : ICommand
- Inheritance
-
HighlightRectCommandSettings
- Implements
- Inherited Members
Properties
Color
The highlight fill color (default: transparent).
[JsonPropertyName("color")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RGBA? Color { get; set; }
Property Value
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
Height
Rectangle height
[JsonPropertyName("height")]
public long Height { get; set; }
Property Value
OutlineColor
The highlight outline color (default: transparent).
[JsonPropertyName("outlineColor")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RGBA? OutlineColor { get; set; }
Property Value
Width
Rectangle width
[JsonPropertyName("width")]
public long Width { get; set; }
Property Value
X
X coordinate
[JsonPropertyName("x")]
public long X { get; set; }
Property Value
Y
Y coordinate
[JsonPropertyName("y")]
public long Y { get; set; }