←Select platform

ClipPoint Method

Summary

Clips the specified point.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
protected virtual LeadPointD ClipPoint( 
   LeadPointD point, 
   LeadRectD clipRect 
) 
Protected Overridable Function ClipPoint( _ 
   ByVal point As Leadtools.LeadPointD, _ 
   ByVal clipRect As Leadtools.LeadRectD _ 
) As Leadtools.LeadPointD 
-(LeadPointD) clipPoint:(LeadPointD)point 
               clipRect:(LeadRectD)clipRect; 
             
protected LeadPointD clipPoint(LeadPointD point, LeadRectD clipRect) 
 function Leadtools.Annotations.Designers.AnnDesigner.ClipPoint(  
   point , 
   clipRect  
) 
protected:  
   virtual LeadPointD^ ClipPoint( 
      LeadPointD^ point, 
      LeadRectD^ clipRect 
   ) 

Parameters

point
Point to clip.

clipRect
Clipping rectangle to use.

Return Value

point clipped to the boundaries of the rectangle.

Remarks

This method is only used when the value of RestrictDesigners is true. The framework supports restricting the object inside its container when it is being drawn or edited. When the mouse cursor or touch pointer is used to draw or edit an object, the designer will call ClipPoint to restrict the position of the cursor or touch pointer to a point inside the rectangle set in ClipRectangle.

By default, the value of ClipRectangle is set to the location and boundary of the Container. In such cases the designer restricts the user from drawing or moving (editing) an object or any of its points outside the container.

Override this behavior by implementing a custom clipping area in ClipRectangle or overriding the ClipPoint method.

Neither the ClipRectangle nor the ClipPoint are used when the value of RestrictDesigners is false.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Designers Assembly