Click or drag to resize

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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public Point GetConfinedLocation(
	WpfAnnotationUI annotation,
	Point requestedLocation
)

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: Point
A valid location for this annotation, keeping it within the confined bounds.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the annotation argument is null (Nothing in VB).
See Also