←Select platform

GetItemBounds Method

Summary

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

Syntax

C#
VB
C++
public virtual LeadRectD GetItemBounds( 
   ImageViewerItem item, 
   ImageViewerItemPart part 
) 
Public Overridable Function GetItemBounds( 
   ByVal item As ImageViewerItem, 
   ByVal part As ImageViewerItemPart 
) As LeadRectD 
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 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly