Class Range
Represents an pair of two points that defines a scope in a two-dimensional plane.
[Serializable]
public class Range : IRange, ICloneable
- Inheritance
-
Range
- Implements
- Derived
Constructors
- Range()
Initializes a new instance of the
Range
class with default settings.
- Range(Point, Point)
Initializes a new instance of the
Range
class with specified parameters.
- Range(int, int, int, int)
Initializes a new instance of the
Range
class with specified parameters.
Properties
- EndPoint
Gets or sets end of
IRange
area.
- IsEmpty
Gets boolean value indicating whether
IRange
has zero size.
- Size
Gets or sets size of
IRange
area.
- StartPoint
Gets or sets begin of
IRange
area.
Methods
- Assign(IRange)
Copies contents from another
IRange
object.
- Clone()
Creates a new object that is a copy of the current
IRange
object.
- InsideRange(Point, Rectangle)
Indicates whether specified rectangle contains given position.
- InsideRange(Point, Rectangle, bool)
Indicates whether specified rectangle contains given position.
- ShouldSerializeSize()
Indicates whether the
Size
property should be persisted.
- UpdatePos(int, int, int, int, ref Point, bool)
Updates specified position by DeltaX and DeltaY values.
- UpdatePos(int, int, int, int, ref int, ref int, bool)
Updates specified position by DeltaX and DeltaY values.