CreateGraphDrawingContext ( Rectangle oSubgraphRectangle, GeneralUserSettings oGeneralUserSettings ) { Debug.Assert(oGeneralUserSettings != null); AssertValid(); return(new GraphDrawingContext( WpfGraphicsUtil.RectangleToRect(oSubgraphRectangle), Margin, WpfGraphicsUtil.ColorToWpfColor(oGeneralUserSettings.BackColor) )); }
TryGetGroupRectangle ( GroupInfo oGroupInfo, out Rect oGroupRectangle ) { Debug.Assert(oGroupInfo != null); AssertValid(); oGroupRectangle = WpfGraphicsUtil.RectangleToRect( oGroupInfo.Rectangle); return(oGroupRectangle.Width > 0 && oGroupRectangle.Height > 0); }