Smrf.NodeXL.Visualization.Wpf.GroupDrawer.TryGetGroupRectangle C# (CSharp) Method

TryGetGroupRectangle() protected method

protected TryGetGroupRectangle ( GroupInfo oGroupInfo, Rect &oGroupRectangle ) : System.Boolean
oGroupInfo Smrf.NodeXL.Core.GroupInfo
oGroupRectangle System.Windows.Rect
return System.Boolean
    TryGetGroupRectangle
    (
        GroupInfo oGroupInfo,
        out Rect oGroupRectangle
    )
    {
        Debug.Assert(oGroupInfo != null);
        AssertValid();

        oGroupRectangle = WpfGraphicsUtil.RectangleToRect(
            oGroupInfo.Rectangle);

        return (oGroupRectangle.Width > 0 && oGroupRectangle.Height > 0);
    }