←Select platform

GetItemBounds Method

Summary

Current logical (excluding the current transformation) bounds of any part of an item.

Syntax
C#
C++/CLI
public virtual LeadRectD GetItemBounds( 
   ImageViewerItem item, 
   ImageViewerItemPart part 
) 
public:  
   virtual LeadRectD^ GetItemBounds( 
      ImageViewerItem^ item, 
      ImageViewerItemPart^ part 
   ) 

Parameters

item

The item. Must be a valid item inside this viewer.

part

The item part requested.

Return Value

The bounding rectangle in pixels or LeadRectD.Empty if the item is not visible or does not have an image.

Remarks

Use ConvertBoundsToView to convert a bound from logical to physical coordinates.

For more information refer to Image Viewer Appearance, Image Viewer Transformation, and Image Viewer Bounds and Transform.

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.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.