C# 클래스 SilverFlow.Controls.Controllers.SnapinController

Provides helpers methods for calculating window position during movement and resizing.
상속: ISnapinController
파일 보기 프로젝트 열기: Zoomicon/ZUI

Private Properties

프로퍼티 타입 설명
DistanceBetweenBottomEdgeAndRectangle double
DistanceBetweenLeftEdgeAndRectangle double
DistanceBetweenRectangles Distance
DistanceBetweenRightEdgeAndRectangle double
DistanceBetweenTopEdgeAndRectangle double

공개 메소드들

메소드 설명
SnapBottomLeftCorner ( Rect rect ) : Point

Snaps the lower left corner of the specified rectangle to the nearest bounds.

SnapBottomRightCorner ( Rect rect ) : Point

Snaps the bottom right corner of the specified rectangle to the nearest bounds.

SnapRectangle ( Rect rect ) : Point

Returns new position of the specified rectangle taking into account bounds the rectangle can be attracted to.

SnapTopLeftCorner ( Rect rect ) : Point

Snaps the upper left corner of the specified rectangle to the nearest bounds.

SnapTopRightCorner ( Rect rect ) : Point

Snaps the upper right corner of the specified rectangle to the nearest bounds.

비공개 메소드들

메소드 설명
DistanceBetweenBottomEdgeAndRectangle ( Rect first, Rect second ) : double

Returns distance between the bottom edge of the rectangle and another rectangle.

DistanceBetweenLeftEdgeAndRectangle ( Rect first, Rect second ) : double

Returns distance between the left edge of the rectangle and another rectangle.

DistanceBetweenRectangles ( Rect first, Rect second ) : Distance

Returns mininal distance between two rectangles.

DistanceBetweenRightEdgeAndRectangle ( Rect first, Rect second ) : double

Returns distance between the right edge of the rectangle and another rectangle.

DistanceBetweenTopEdgeAndRectangle ( Rect first, Rect second ) : double

Returns distance between the top edge of the rectangle and another rectangle.

메소드 상세

SnapBottomLeftCorner() 공개 메소드

Snaps the lower left corner of the specified rectangle to the nearest bounds.
public SnapBottomLeftCorner ( Rect rect ) : Point
rect System.Windows.Rect The rectangle.
리턴 System.Windows.Point

SnapBottomRightCorner() 공개 메소드

Snaps the bottom right corner of the specified rectangle to the nearest bounds.
public SnapBottomRightCorner ( Rect rect ) : Point
rect System.Windows.Rect The rectangle.
리턴 System.Windows.Point

SnapRectangle() 공개 메소드

Returns new position of the specified rectangle taking into account bounds the rectangle can be attracted to.
public SnapRectangle ( Rect rect ) : Point
rect System.Windows.Rect The rectangle.
리턴 System.Windows.Point

SnapTopLeftCorner() 공개 메소드

Snaps the upper left corner of the specified rectangle to the nearest bounds.
public SnapTopLeftCorner ( Rect rect ) : Point
rect System.Windows.Rect The rectangle.
리턴 System.Windows.Point

SnapTopRightCorner() 공개 메소드

Snaps the upper right corner of the specified rectangle to the nearest bounds.
public SnapTopRightCorner ( Rect rect ) : Point
rect System.Windows.Rect The rectangle.
리턴 System.Windows.Point