C# Class Gu.Wpf.Geometry.PlacementOptions

Datei anzeigen Open project: JohanLarsson/Gu.Wpf.Geometry

Public Properties

Property Type Description
Auto PlacementOptions
Center PlacementOptions

Public Methods

Method Description
GetPointOnTarget ( Rect placed, Rect target ) : Point?
PlacementOptions ( HorizontalPlacement horizontal, VerticalPlacement vertical, double offset ) : System
ToString ( ) : string

Private Methods

Method Description
AutoPoint ( Line toMid, Line edge ) : Point?
ClosestLine ( Rect rect, Point p ) : Line
GetPointOnTarget ( Point sourceMidPoint, Rect target ) : Point?

Method Details

GetPointOnTarget() public method

public GetPointOnTarget ( Rect placed, Rect target ) : Point?
placed System.Windows.Rect
target System.Windows.Rect
return Point?

PlacementOptions() public method

public PlacementOptions ( HorizontalPlacement horizontal, VerticalPlacement vertical, double offset ) : System
horizontal HorizontalPlacement
vertical VerticalPlacement
offset double
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Auto public_oe static_oe property

public static PlacementOptions,Gu.Wpf.Geometry Auto
return PlacementOptions

Center public_oe static_oe property

public static PlacementOptions,Gu.Wpf.Geometry Center
return PlacementOptions