eDriven Framework API
CenterRectangle Method (outer, inner)
Namespaces ► eDriven.Core.Geom ► Rectangle ► CenterRectangle(Rectangle, Rectangle)
eDriven Framework API
Centers the inner rectangle inside the given outer rectangle
Declaration Syntax

C# | Visual Basic | Visual C++

    public static Rectangle CenterRectangle(
    	Rectangle outer,
    	Rectangle inner
    )

    Public Shared Function CenterRectangle ( _
    	outer As Rectangle, _
    	inner As Rectangle _
    ) As Rectangle

    public:
    static Rectangle^ CenterRectangle(
    	Rectangle^ outer,
    	Rectangle^ inner
    )

Parameters

outer (Rectangle)
  Outer rectangle

inner (Rectangle)
  Inner rectangle

Return Value
Centered rectangle

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)