Class RectangleHandle
public abstract class RectangleHandle : SafeHandle, IDisposable, IEquatable<RectangleHandle>
- Inheritance
-
RectangleHandle
- Implements
- Derived
- Inherited Members
Constructors
RectangleHandle(bool)
protected RectangleHandle(bool ownsHandle)
Parameters
ownsHandlebool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override sealed bool IsInvalid { get; }
Property Value
Methods
Equals(RectangleHandle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RectangleHandle? other)
Parameters
otherRectangleHandleAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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.
GetHeight()
public int GetHeight()
Returns
GetWidth()
public int GetWidth()
Returns
GetX()
public int GetX()
Returns
GetY()
public int GetY()
Returns
OwnedCopy()
public RectangleOwnedHandle OwnedCopy()
Returns
SetHeight(int)
public void SetHeight(int value)
Parameters
valueint
SetWidth(int)
public void SetWidth(int value)
Parameters
valueint
SetX(int)
public void SetX(int value)
Parameters
valueint
SetY(int)
public void SetY(int value)
Parameters
valueint
UnownedCopy()
public RectangleUnownedHandle UnownedCopy()