LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetCellBackgroundColor Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrTableZoneManager Interface : SetCellBackgroundColor Method



zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
cellIndex
The 0-based index of the cell inside the zone OcrZone.Cells. This cell must exist in the array, otherwise, this method will throw an exception.
color
The color to be set.
zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
cellIndex
The 0-based index of the cell inside the zone OcrZone.Cells. This cell must exist in the array, otherwise, this method will throw an exception.
color
The color to be set.
Sets the background color of a cell inside a given zone.

Syntax

Visual Basic (Declaration) 
Sub SetCellBackgroundColor( _
   ByVal zoneIndex As Integer, _
   ByVal cellIndex As Integer, _
   ByVal color As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As IOcrTableZoneManager
Dim zoneIndex As Integer
Dim cellIndex As Integer
Dim color As RasterColor
 
instance.SetCellBackgroundColor(zoneIndex, cellIndex, color)
C# 
void SetCellBackgroundColor( 
   int zoneIndex,
   int cellIndex,
   RasterColor color
)
C++/CLI 
void SetCellBackgroundColor( 
   int zoneIndex,
   int cellIndex,
   RasterColor color
) 

Parameters

zoneIndex
The 0-based index of the zone inside this page IOcrPage.Zones. This zone must exist in the list and its type must be a table (OcrZone.ZoneType must be OcrZoneType.Table) otherwise, this method will throw an exception.
cellIndex
The 0-based index of the cell inside the zone OcrZone.Cells. This cell must exist in the array, otherwise, this method will throw an exception.
color
The color to be set.

Remarks

This method is the equivalant of changing OcrZoneCell.BackgroundColor and calling UpdateCells.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

SetCellBackgroundColor requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features