Table of Contents

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

string

Left

Left margin, accepts values labeled with units.

public string Left { get; set; }

Property Value

string

Right

Right margin, accepts values labeled with units.

public string Right { get; set; }

Property Value

string

Top

Top margin, accepts values labeled with units.

public string Top { get; set; }

Property Value

string

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

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 MarginOptions

the value to compare against right.

right MarginOptions

the 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 MarginOptions

the value to compare against right.

right MarginOptions

the value to compare against left.

Returns

bool

true if the two instances are not equal to the same value.