• Overview
  • How it works
  • Documentation
  • Blog
  • Forum
Search Results for

    Show / Hide Table of Contents

    Int32Rect Struct

    Definition

    Namespace: Alternet.Drawing
    Assembly: Alternet.UI.dll

    Stores the location and size of a rectangular region.

    Implements
    IEquatable<Int32Rect>
    Syntax
    [Serializable]
    public struct Int32Rect : IEquatable<Int32Rect>

    Constructors

    Int32Rect(Int32Point, Int32Size)

    Initializes a new instance of the Rectangle class with the specified location and size.

    Int32Rect(Int32, Int32, Int32, Int32)

    Initializes a new instance of the Int32Rect class with the specified location and size.

    Fields

    Empty

    Represents a Int32Rect structure with its properties left uninitialized.

    Properties

    Bottom

    Gets the y-coordinate of the lower-right corner of the rectangular region defined by this Int32Rect.

    Height

    Gets or sets the width of the rectangular region defined by this Int32Rect.

    IsEmpty

    Tests whether this Int32Rect has a Width or a Height of 0.

    Left

    Gets the x-coordinate of the upper-left corner of the rectangular region defined by this Int32Rect .

    Location

    Gets or sets the coordinates of the upper-left corner of the rectangular region represented by this Int32Rect.

    Right

    Gets the x-coordinate of the lower-right corner of the rectangular region defined by this Int32Rect.

    Size

    Gets or sets the size of this Int32Rect.

    Top

    Gets the y-coordinate of the upper-left corner of the rectangular region defined by this Int32Rect.

    Width

    Gets or sets the width of the rectangular region defined by this Int32Rect.

    X

    Gets or sets the x-coordinate of the upper-left corner of the rectangular region defined by this Int32Rect.

    Y

    Gets or sets the y-coordinate of the upper-left corner of the rectangular region defined by this Int32Rect.

    Methods

    Ceiling(Rect)

    Converts a RectangleF to a Rectangle by performing a ceiling operation on all the coordinates.

    Contains(Int32Point)

    Determines if the specified point is contained within the rectangular region defined by this Int32Rect .

    Contains(Int32Rect)

    Determines if the rectangular region represented by rect is entirely contained within the rectangular region represented by this Int32Rect .

    Contains(Int32, Int32)

    Determines if the specified point is contained within the rectangular region defined by this Int32Rect .

    Equals(Int32Rect)

    Indicates whether the current object is equal to another object of the same type.

    Equals(Object)

    Tests whether obj is a Int32Rect with the same location and size of this Rectangle.

    FromLTRB(Int32, Int32, Int32, Int32)

    Creates a new Int32Rect with the specified location and size.

    GetHashCode()

    Serves as the default hash function.

    Inflate(Int32Rect, Int32, Int32)

    Creates a Int32Rect that is inflated by the specified amount.

    Inflate(Int32Size)

    Inflates this Int32Rect by the specified amount.

    Inflate(Int32, Int32)

    Inflates this Int32Rect by the specified amount.

    Intersect(Int32Rect)

    Creates a Rectangle that represents the intersection between this Rectangle and rect.

    Intersect(Int32Rect, Int32Rect)

    Creates a rectangle that represents the intersection between a and b. If there is no intersection, an empty rectangle is returned.

    IntersectsWith(Int32Rect)

    Determines if this rectangle intersects with rect.

    Offset(Int32Point)

    Adjusts the location of this rectangle by the specified amount.

    Offset(Int32, Int32)

    Adjusts the location of this rectangle by the specified amount.

    Parse(String)

    Parse - returns an instance converted from the provided string using the culture "en-US"

    string with Int32Rect data
    Round(Rect)

    Converts a RectangleF to a Rectangle by performing a round operation on all the coordinates.

    ToString()

    Converts the attributes of this Int32Rect to a human readable string.

    Truncate(Rect)

    Converts a RectangleF to a Rectangle by performing a truncate operation on all the coordinates.

    Union(Int32Rect, Int32Rect)

    Creates a rectangle that represents the union between a and b.

    Operators

    Equality(Int32Rect, Int32Rect)

    Tests whether two Int32Rect objects have equal location and size.

    Inequality(Int32Rect, Int32Rect)

    Tests whether two Int32Rect objects differ in location or size.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)

    Implements

    System.IEquatable<T>
    In This Article
    Back to top Documentation Licensing Info Copyright AlterNET Software