LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

UseNewMultilineBehavior Property (AnnDrawDesigner)






Gets or sets a value that indicate whether to cancel the drawing of a multi-point object if the mouse cursor was clicked and released in the same position.
Syntax
public virtual bool UseNewMultilineBehavior {get; set;}
'Declaration
 
Public Overridable Property UseNewMultilineBehavior As Boolean
'Usage
 
Dim instance As AnnDrawDesigner
Dim value As Boolean
 
instance.UseNewMultilineBehavior = value
 
value = instance.UseNewMultilineBehavior
public virtual bool UseNewMultilineBehavior {get; set;}
 get_UseNewMultilineBehavior();
set_UseNewMultilineBehavior(value);
public:
virtual property bool UseNewMultilineBehavior {
   bool get();
   void set (    bool value);
}

Property Value

true to cancel the drawing of a multi-point object if the mouse cursor was clicked and released in the same position. false otherwise. Default value is true.
Remarks

This property is used when drawing any annotation object that derives from AnnPolylineObject such as AnnPolygonObject, AnnCurveObject and AnnPolyRulerObject. When drawing a multi-line object, the user moves the mouse cursor to the desired position of the first point and clicks the left button. The user then moves to the location of the second point and releases the cursor to draw the second point. If the position of the two points is equal (in other words, the user clicks and releases the cursor over the same position) then the two points will have the same value and might not be the desired behavior.

When the value of UseNewMultilineBehavior is true (the default value), then when the user clicks and releases the mouse cursor when drawing the first point of the polyline object, the drawing object will be canceled.

When the value of UseNewMultilineBehavior is false, then when the user clicks and releases the mouse cursor when drawing the first point of the polyline object, a new polyline object with identical two points in the same position will be added.

The AnnAutomationManager.UseNewMultilineBehavior property can be used to automatically set the value of AnnDrawDesigner.UseNewMultilineBehavior when using the automation mode.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnDrawDesigner Class
AnnDrawDesigner Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.