Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetCallback Method
See Also 
Leadtools Namespace > RasterPaintCallbacks Class : SetCallback Method



functionType

The type of callback to add.

This parameter must be one of the RasterImagePaintCallbackFunction enumeration.

functionPointer

The callback function.

Adds a callback to the RasterImage.PaintCallbacks member.

Syntax

Visual Basic (Declaration) 
Public Sub SetCallback( _
   ByVal functionType As RasterImagePaintCallbackFunction, _
   ByVal functionPointer As PaintCallbackDelegate _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintCallbacks
Dim functionType As RasterImagePaintCallbackFunction
Dim functionPointer As PaintCallbackDelegate
 
instance.SetCallback(functionType, functionPointer)
C++/CLI 
public:
void SetCallback( 
   RasterImagePaintCallbackFunction functionType,
   PaintCallbackDelegate^ functionPointer
) 

Parameters

functionType

The type of callback to add.

This parameter must be one of the RasterImagePaintCallbackFunction enumeration.

functionPointer

The callback function.

Example

For an example, refer to RasterImage.PaintCallbacks.

Remarks

This method sets a particular callback. If you wish to remove a callback pass null (Nothing in VB) as functionPointer parameter.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also