Class PrintPageParameters
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Parameters of page size for printing.
public class PrintPageParameters
- Inheritance
-
PrintPageParameters
- Inherited Members
Constructors
PrintPageParameters()
Initializes a new instance of the PrintPageParameters class.
public PrintPageParameters()
Properties
Height
Gets or sets the height in centimeters of the page for printing. If omitted, defaults to 27.94.
[JsonPropertyName("height")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(0.0352, Infinity)]
public double? Height { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0352 (the protocol's minimum of one point). This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.
Width
Gets or sets the width in centimeters of the page for printing. If omitted, defaults to 21.59.
[JsonPropertyName("width")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(0.0352, Infinity)]
public double? Width { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0352 (the protocol's minimum of one point). This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.