Table of Contents

Method Round

Namespace
Alternet.Common.Wpf
Assembly
Alternet.Common.Wpf.v9.dll

Round(Point, Size)

Rounds given point.

public static Point Round(Point point, Size pixelSize)

Parameters

point Point

Specifies System.Windows.Point to round.

pixelSize Size

Specifies System.Windows.Size on which divided given point.

Returns

Point

Rounded System.Windows.Point after division by pixelSize.

Round(Rect, Size)

Rounds given rectangle.

public static Rect Round(Rect rect, Size pixelSize)

Parameters

rect Rect

Specifies System.Windows.Rect to round.

pixelSize Size

Specifies System.Windows.Size on which divided given rect.

Returns

Rect

Rounded System.Windows.Rect after division by pixelSize.

Round(double, double)

Rounds given value.

public static double Round(double value, double pixelSize)

Parameters

value double

Specifies a double value to round.

pixelSize double

Specifies System.Windows.Size on which divided given value.

Returns

double

Rounded value after division by pixelSize.