OffsetCellActionSample Example for Visual C++ 5.0

void OffsetCellActionSample(CLEADRasterContainerViewer * pLEADContainerViewer) 
{
 TRY
  {
     pLEADContainerViewer->SetEnableMethodErrors(TRUE);
     if(!pLEADContainerViewer->OffsetAction().GetUse())
        pLEADContainerViewer->OffsetAction().ActivateAction(TRUE, 0);
     // Specify Offset cell's parameters.
     pLEADContainerViewer->OffsetAction().SetXOffset(100);
     pLEADContainerViewer->OffsetAction().SetYOffset(100);

     // Apply Offset on cell 0.
     pLEADContainerViewer->OffsetAction().SetAction(0, CONVIEW_ACTIONLEVEL_CELL);
  }
  CATCH_ALL(e)
  {
      e->ReportError();
  }
  END_CATCH_ALL
}