LImageViewer::GetCellsCount

Summary

Returns the number of cells managed by the container.

Syntax

#include "ltwrappr.h"

L_INT LImageViewer::GetCellsCount (uFlags);

Parameters

L_UINT uFlags

Reserved for future use. Pass 0.

Returns

Value Meaning
>= 0 The number of cells managed by the container.
< 0 An error occurred. Refer to Return Codes.

Comments

To add cells to the container, call LImageViewer::InsertCell. To remove one or more cells from the container, call LImageViewer::RemoveCell.

Please note that the maximum number of rows that a container can have is 4 and the maximum number of columns is 8. However, the number of cells that can be added to a container is limited only by the available memory.

Required DLLs and Libraries

See Also

Functions

Topics

Example

void GetcellscountExample(LImageViewer& ImageViewer)  
{ 
   // This procedure unfreezes any freezed cells and vice versa 
 
   L_INT nRet = 0 ;  
   // Get the cells count.  
   L_INT nCount = ImageViewer.GetCellCount(0);  
 
   LImageViewerCell * ImageViewerCell; 
   // if there is a Freezed cell make it unfreezed and vice versa 
   for (L_INT nI = 0; nI < nCount; nI++) 
   { 
      ImageViewerCell = ImageViewer.GetCellHandle(nI, 0); 
      nRet = ImageViewerCell->FreezeCell(!(ImageViewerCell->IsCellFrozen(0)), 0);  
   } 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.