LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetCallback Method
See Also 



functionType

The type of callback to add.

This parameter must be one of the RasterImagePaintCallbackFunction enumeration.

functionPointer

The callback function.

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 RasterPaintProperties.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 RasterPaintProperties.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: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also