ImageGear .NET v25.1 - Updated
CanCreateMark Method (ImGearAnnotatorPolyController)




ImageGear.Windows.Controls.Art Assembly > ImageGear.Windows.Controls Namespace > ImGearAnnotatorPolyController Class : CanCreateMark Method
Points already entered by user.
Data associated with create action.
Checks if a new mark can be created.
Syntax
'Declaration
 
Public Overrides Function CanCreateMark( _
   ByVal points As IEnumerable(Of ImGearPoint), _
   ByVal createMarkData As ImGearAnnotatorCreateMarkData _
) As Boolean
'Usage
 
Dim instance As ImGearAnnotatorPolyController
Dim points As IEnumerable(Of ImGearPoint)
Dim createMarkData As ImGearAnnotatorCreateMarkData
Dim value As Boolean
 
value = instance.CanCreateMark(points, createMarkData)
public override bool CanCreateMark( 
   IEnumerable<ImGearPoint> points,
   ImGearAnnotatorCreateMarkData createMarkData
)
public: bool CanCreateMark( 
   IEnumerable<ImGearPoint>* points,
   ImGearAnnotatorCreateMarkData* createMarkData
) override 
public:
bool CanCreateMark( 
   IEnumerable<ImGearPoint>^ points,
   ImGearAnnotatorCreateMarkData^ createMarkData
) override 

Parameters

points
Points already entered by user.
createMarkData
Data associated with create action.

Return Value

True if mark can be created using given points and creation data.
Remarks
Annotator calls this method to determine if a new mark can be created from the given set of points. For example, all rectangular marks can be created by two points, but Protractor requires 3 points, and polyline needs double-click to be created.
See Also

Reference

ImGearAnnotatorPolyController Class
ImGearAnnotatorPolyController Members