ScreenshotClip Struct

An area of a screenshot (see ScreenshotOptions.Clip), in CSS pixels.

public readonly struct ScreenshotClip : IEquatable<ScreenshotClip>
Implements

Constructors

NameDescription
ScreenshotClip(double, double, double, double)An area of a screenshot (see ScreenshotOptions.Clip), in CSS pixels.

ScreenshotClip(double, double, double, double)

An area of a screenshot (see ScreenshotOptions.Clip), in CSS pixels.

public ScreenshotClip(double X, double Y, double Width, double Height)

Parameters

X double
The left edge of the area.
Y double
The top edge of the area.
Width double
The width of the area.
Height double
The height of the area.

Properties

NameDescription
HeightThe height of the area.
WidthThe width of the area.
XThe left edge of the area.
YThe top edge of the area.

The height of the area.

public double Height { get; init; }

Property value

double

The width of the area.

public double Width { get; init; }

Property value

double

The left edge of the area.

public double X { get; init; }

Property value

double

The top edge of the area.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, double, double)
Equals(ScreenshotClip)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, double, double)

public void Deconstruct(out double X, out double Y, out double Width, out double Height)

Parameters

X double
Y double
Width double
Height double

No documentation is available.

Equals overloads

Equals(ScreenshotClip)

public bool Equals(ScreenshotClip other)
Parameters
other ScreenshotClip
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ScreenshotClip, ScreenshotClip)
operator !=(ScreenshotClip, ScreenshotClip)

operator ==(ScreenshotClip, ScreenshotClip)

public static bool operator ==(ScreenshotClip left, ScreenshotClip right)

Parameters

left ScreenshotClip
right ScreenshotClip

Returns

bool

No documentation is available.

operator !=(ScreenshotClip, ScreenshotClip)

public static bool operator !=(ScreenshotClip left, ScreenshotClip right)

Parameters

left ScreenshotClip
right ScreenshotClip

Returns

bool

No documentation is available.