Class MarginOptions
- Namespace
- PuppeteerSharp.Media
- Assembly
- PuppeteerSharp.dll
margin options used in PdfOptions.
public class MarginOptions : IEquatable<MarginOptions>
- Inheritance
-
MarginOptions
- Implements
Constructors
MarginOptions()
Initializes a new instance of the MarginOptions class.
public MarginOptions()
Properties
Bottom
Bottom margin, accepts values labeled with units.
public string Bottom { get; set; }
Property Value
Left
Left margin, accepts values labeled with units.
public string Left { get; set; }
Property Value
Right
Right margin, accepts values labeled with units.
public string Right { get; set; }
Property Value
Top
Top margin, accepts values labeled with units.
public string Top { get; set; }
Property Value
Methods
Equals(MarginOptions)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MarginOptions options)
Parameters
options
MarginOptions
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(MarginOptions, MarginOptions)
Overriding == operator for MarginOptions.
public static bool operator ==(MarginOptions left, MarginOptions right)
Parameters
left
MarginOptionsthe value to compare against
right
.right
MarginOptionsthe value to compare against
left
.
Returns
- bool
true
if the two instances are equal to the same value.
operator !=(MarginOptions, MarginOptions)
Overriding != operator for MarginOptions.
public static bool operator !=(MarginOptions left, MarginOptions right)
Parameters
left
MarginOptionsthe value to compare against
right
.right
MarginOptionsthe value to compare against
left
.
Returns
- bool
true
if the two instances are not equal to the same value.