NevronOpenVision
Nevron.Nov.Graphics Namespace / NRectangle Structure
Fields Properties Methods


In This Topic
    NRectangle Structure Members
    In This Topic

    The following tables list the members exposed by NRectangle.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public FieldRectangle height  
    Public Fieldstatic (Shared in Visual Basic)The NaN rectangle.  
    Public FieldRectangle width  
    Public FieldX coordinate of the left top corner  
    Public FieldY coordinate of the left top corner  
    Public Fieldstatic (Shared in Visual Basic)The Zero rectangle.  
    Top
    Protected Fields
     NameDescription
    Internal Fieldstatic (Shared in Visual Basic)  
    Top
    Public Properties
     NameDescription
    Public PropertyObtains the rectangle area (Width * Height).  
    Public PropertyGets the bottom side of the rectangle  
    Public PropertyGets the bottom center point  
    Public PropertyGets the minimal enclosing rectangle  
    Public Property  
    Public PropertyGets the rectangle center  
    Public PropertyGets the X center  
    Public PropertyGets the X center  
    Public PropertyDetermines whether the rectangle is with zero Width or Height.  
    Public PropertyDetermines whether the rectangle is normalized (both width and height are not negative).  
    Public PropertyIndicates whether all fields of the rectangle are defined, i.e. whether X, Y, Width and Height are all different from Double.NaN.  
    Public PropertyGets the left side of the rectangle  
    Public PropertyGets the rectangle left bottom corner  
    Public PropertyGets the left center point  
    Public PropertyGets or sets the rectangle left-top corner (location)  
    Public PropertyGets or sets the rectangle location (left-top corner)  
    Public PropertyGets an array with the rectangle sides middle points  
    Public PropertyObtains the rectangle perimeter (2 * Width) + (2 * Height).  
    Public PropertyGets the right side of the rectangle  
    Public PropertyGets the rectangle right bottom corner  
    Public PropertyGets the right center point  
    Public PropertyGets the rectangle right top corner  
    Public PropertyGets or sets the size of this rectangle  
    Public PropertyGets the top side of the rectangle  
    Public PropertyGets the top center point  
    Public PropertyGets an array with the rectangle vertices  
    Public PropertyGets an array with the rectangle vertices and middles enumerated clockwise starting from the left-top vertex  
    Top
    Protected Properties
     NameDescription
    Internal Property  
    Internal Property  
    Top
    Public Methods
     NameDescription
    Public MethodAppends the primitive to the specified graphics path  
    Public MethodOverloaded. Determines whether the rectangle contains the specified point  
    Public MethodDetermines whether the outline of the rectangle contains the specified point  
    Public MethodOverloaded. Deflates the rectangle with the specified amount  
    Public MethodDeserializes the object state from the specified property bag.  
    Public MethodCalculates the distance of the specified point to this rectangle. Returns 0 if the point is inside the rectangle.  
    Public MethodOverloaded. Checks whether this size is equal to the other size  
    Public Methodstatic (Shared in Visual Basic)Returns the fitted rectangle with the specified orientation (in degrees)  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Gets a rectangle from center and dimensions  
    Public Methodstatic (Shared in Visual Basic)Gets a rectangle from the coordinates of it's sides  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Gets a normalized rectangle from two points  
    Public MethodOverloaded. Obtains the point on the rectangle rim, which corresponds to the specified alignment  
    Public MethodGets a rectangle which is aligned to this rectangle according to the specified content alignment. If clip is true and the provided size is larger than the specified size, the returned rectangle size is clampted to this rectangle size.  
    Public MethodObtains the point on the rectangle rim, which corresponds to the specified compass direction  
    Public Method  
    Public MethodObtains the point on the rectangle rim, which is oppisite to the point which corresponds to the specified compass direction  
    Public MethodGets the rectangle perimeter  
    Public MethodOverloaded. Determines whether the rectangle contains the point  
    Public MethodDetermines whether this rectangle intersects with the specified rectangle  
    Public MethodOverloaded. Inflates the rectangle with the specified amount.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Returns a third rectangle that represents the intersection of two rectangles. If there is no intersection, the Zero rectangle is returned.  
    Public MethodComputes the intersection area of this rect with the specified rect  
    Public MethodOverloaded. Determines whether this rectangle intersects with the specified rectangle  
    Public MethodIntersects this rectangle with the specified line segment  
    Public MethodIntersects this rectangle with a line connecting the rectangle center and the specified point  
    Public Methodstatic (Shared in Visual Basic)Gets the middle rectangle from two other rects.  
    Public MethodMakes sure that the Width and Height are positive values. If either is negative the X/Y respectively is subtracted with the Width/Height and the Width/Height is set to its absolute positive value.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Computes a new rect for an expected resize of a rectangle in the specified compass direction. Does not allow the newly created rect size to exceed the specified minSize.  
    Public MethodRounds this rectangle.  
    Public MethodScales the rectangle with the specified factors  
    Public MethodSerializes the object state into the specified property bag.  
    Public MethodConverts this rectangle to an NRange2D.  
    Public MethodReturns the string representation of this object  
    Public MethodTranslates the primitive with the specified amounts  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Creates the smallest possible rectangle that can contain the specified rectangles  
    Top
    Protected Methods
     NameDescription
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Method  
    Internal Methodstatic (Shared in Visual Basic)  
    Internal Methodstatic (Shared in Visual Basic)  
    Internal Method  
    Top
    Public Operators
    Determines whether a is equal to b
    Determines whether a is not equal to b
    Top
    See Also