Nevron.UI Namespace / NLayoutHelper Class / CenterRect Method / CenterRect(Rectangle,Size) Method


In This Topic
    CenterRect(Rectangle,Size) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CenterRect( _
       ByVal bounds As System.Drawing.Rectangle, _
       ByVal size As System.Drawing.Size _
    ) As System.Drawing.Rectangle
    'Usage
     
    
    Dim bounds As System.Drawing.Rectangle
    Dim size As System.Drawing.Size
    Dim value As System.Drawing.Rectangle
     
    value = NLayoutHelper.CenterRect(bounds, size)
    public static System.Drawing.Rectangle CenterRect( 
       System.Drawing.Rectangle bounds,
       System.Drawing.Size size
    )

    Parameters

    bounds
    size
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also