AvalonEdit
PixelSnapHelpers Class
NamespacesICSharpCode.AvalonEdit.UtilsPixelSnapHelpers
Contains static helper methods for aligning stuff on a whole number of pixels.
Declaration Syntax
C#Visual BasicVisual C++
public static class PixelSnapHelpers
Public NotInheritable Class PixelSnapHelpers
public ref class PixelSnapHelpers abstract sealed
Members
All MembersMethods



IconMemberDescription
GetPixelSize(Visual)
Gets the pixel size on the screen containing visual. This method does not take transforms on visual into account.

PixelAlign(Double, Double)
Aligns value on the next middle of a pixel.

PixelAlign(Rect, Size)
Aligns the borders of rect on the middles of pixels.

Round(Point, Size)
Rounds point to whole number of pixels.

Round(Rect, Size)
Rounds val to whole number of pixels.

Round(Double, Double)
Rounds value to a whole number of pixels.

RoundToOdd(Double, Double)
Rounds value to an whole odd number of pixels.

Inheritance Hierarchy
Object
PixelSnapHelpers

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238