RectangleExtensionsGetCenter Method
Gets the center point of the rectangle.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Point GetCenter(
this Rectangle rect
)
<ExtensionAttribute>
Public Shared Function GetCenter (
rect As Rectangle
) As Point
public:
[ExtensionAttribute]
static Point GetCenter(
Rectangle rect
)
[<ExtensionAttribute>]
static member GetCenter :
rect : Rectangle -> Point
- rect Rectangle
- The rectangle to get the center point of.
PointThe center point of the rectangle.In Visual Basic and C#, you can call this method as an instance method on any object of type
Rectangle. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).