Browse Source
- added missing implementations of methods in VBNetFormattingStrategy git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4823 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
20 changed files with 124 additions and 36 deletions
@ -1,4 +1,4 @@ |
|||||||
<Window xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation" |
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||||
<Canvas /> |
<Canvas /> |
||||||
</Window> |
</Window> |
||||||
@ -0,0 +1,27 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
using System; |
||||||
|
using System.Windows; |
||||||
|
|
||||||
|
namespace ICSharpCode.WpfDesign |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ExtensionMethods.
|
||||||
|
/// </summary>
|
||||||
|
public static class ExtensionMethods |
||||||
|
{ |
||||||
|
public static Rect Round(this Rect rect) |
||||||
|
{ |
||||||
|
return new Rect( |
||||||
|
Math.Round(rect.X, PlacementInformation.BoundsPrecision), |
||||||
|
Math.Round(rect.Y, PlacementInformation.BoundsPrecision), |
||||||
|
Math.Round(rect.Width, PlacementInformation.BoundsPrecision), |
||||||
|
Math.Round(rect.Height, PlacementInformation.BoundsPrecision) |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue