WpfAnnotationCanvasGetConfinedLocation Method |
This method can be used to determine a valid location for an annotation with regard to the confinement area.
Namespace:
Atalasoft.Annotate.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public Point GetConfinedLocation(
WpfAnnotationUI annotation,
Point requestedLocation
)
Public Function GetConfinedLocation (
annotation As WpfAnnotationUI,
requestedLocation As Point
) As Point
Parameters
- annotation
- Type: Atalasoft.Annotate.WpfWpfAnnotationUI
The annotation this new location will be used with. - requestedLocation
- Type: System.WindowsPoint
The requested location to test.
Return Value
Type:
PointA valid location for this annotation, keeping it within the confined bounds.
Exceptions See Also