Class PrintMarginParameters
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Parameters of margins for printing.
public class PrintMarginParameters
- Inheritance
-
PrintMarginParameters
- Inherited Members
Constructors
PrintMarginParameters()
Initializes a new instance of the PrintMarginParameters class.
public PrintMarginParameters()
Properties
Bottom
Gets or sets the bottom margin in centimeters for printing. If omitted, defaults to 1.0.
[JsonPropertyName("bottom")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, Infinity)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double? Bottom { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0. 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.
Left
Gets or sets the left margin in centimeters for printing. If omitted, defaults to 1.0.
[JsonPropertyName("left")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, Infinity)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double? Left { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0. 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.
Right
Gets or sets the right margin in centimeters for printing. If omitted, defaults to 1.0.
[JsonPropertyName("right")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, Infinity)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double? Right { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0. 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.
Top
Gets or sets the top margin in centimeters for printing. If omitted, defaults to 1.0.
[JsonPropertyName("top")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, Infinity)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double? Top { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to 0.0. 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.