←Select platform

HitTestContainer Method

Summary
Gets the container under the specified location.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public virtual AnnContainer HitTestContainer( 
   LeadPointD location, 
   bool includeObjects 
) 
- (nullable LTAnnContainer *)hitTestContainer:(LeadPointD)location includeObjects:(BOOL)includeObjects; 
public AnnContainer hitTestContainer(LeadPointD location, boolean includeObjects) 
public:  
   virtual AnnContainer^ HitTestContainer( 
      LeadPointD^ location, 
      bool includeObjects 
   ) 
def HitTestContainer(self,location,includeObjects): 

Parameters

location
The location that is being tested.

includeObjects
true if objects that belong to the container but might lay outside the container boundaries are to be included in the hit-testing; otherwise, false and only the container boundary is used in the hit-testing.

Return Value

The first container found under the specified location or null if no containers satisfies the hit-testing location.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.