New to Telerik UI for WinFormsStart a free 30-day trial

Represents a rectangle in cartesian coordinate system represented with Int64 values.

Definition

Namespace:Telerik.WinControls.UI.Map

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public struct RectangleL : IEquatable<RectangleL>

Implements: IEquatable<RectangleL>

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RectangleL struct.

C#
public RectangleL(long x, long y, long width, long height)
Parameters:xlong

The x.

ylong

The y.

widthlong

The width.

heightlong

The height.

Initializes a new instance of the RectangleL struct.

C#
public RectangleL(PointL location, SizeL size)
Parameters:locationPointL

The location.

sizeSizeL

The size.

Fields

Gets an empty RectangleL

C#
public static readonly RectangleL Empty

Properties

Gets the bottom coordinate.

C#
public long Bottom { get; }
Property Value:

The bottom coordinate.

Gets or sets the height.

C#
public long Height { get; set; }
Property Value:

The height.

Gets or sets the location.

C#
public PointL Location { get; set; }
Property Value:

The location.

Gets the right coordinate.

C#
public long Right { get; }
Property Value:

The right coordinate.

Gets or sets the size.

C#
public SizeL Size { get; set; }
Property Value:

The size.

Gets or sets the width.

C#
public long Width { get; set; }
Property Value:

The width.

Gets or sets the x coordinate.

C#
public long X { get; set; }
Property Value:

The x coordinate.

Gets or sets the y coordinate.

C#
public long Y { get; set; }
Property Value:

The y coordinate.

Methods

Determines whether this rectangle contains the specified point.

C#
public bool Contains(long x, long y)
Parameters:xlong

The x.

ylong

The y.

Returns:

bool

true if this rectangle contains the specified point; otherwise, false.

Determines whether this rectangle contains the specified point.

C#
public bool Contains(PointL point)
Parameters:pointPointL

The point.

Returns:

bool

true if this rectangle contains the specified point; otherwise, false.

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

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

Overrides: ValueType.Equals(object)

C#
public bool Equals(RectangleL other)
Parameters:otherRectangleLReturns:

bool

Implements: IEquatable<RectangleL>.Equals(RectangleL)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: ValueType.GetHashCode()

Gets a value indicating whether this rectangle intersects with the provided one.

C#
public bool IntersectsWith(RectangleL rect)
Parameters:rectRectangleL

The rect.

Returns:

bool

true if XXXX, false otherwise.

Offsets this rectangle with the specified delta.

C#
public void Offset(long deltaX, long deltaY)
Parameters:deltaXlong

The delta x.

deltaYlong

The delta y.

Offsets this rectangle with the specified delta.

C#
public void Offset(SizeL delta)
Parameters:deltaSizeL

The delta.

Operators

C#
public static implicit operator RectangleF(RectangleL rect)
Parameters:rectRectangleLReturns:

RectangleF

C#
public static implicit operator RectangleL(RectangleF rect)
Parameters:rectRectangleFReturns:

RectangleL