Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
RasterImagePagesChangedEventArgs Class
See Also  Members  
Leadtools Namespace : RasterImagePagesChangedEventArgs Class




Provides data for the RasterImage.PagesChanged event.

Syntax

Visual Basic (Declaration) 
Public Class RasterImagePagesChangedEventArgs 
   Inherits EventArgs
Visual Basic (Usage)Copy Code
Dim instance As RasterImagePagesChangedEventArgs
C# 
public class RasterImagePagesChangedEventArgs : EventArgs 
Managed Extensions for C++ 
public __gc class RasterImagePagesChangedEventArgs : public EventArgs 
C++/CLI 
public ref class RasterImagePagesChangedEventArgs : public EventArgs 

Remarks

When images are added/inserted or removed from a RasterImage object, the RasterImage.PagesChanged event will fire with an instance of the RasterImagePagesChangedEventArgs class. This instance contains information on what pages has been changed. The following table will list the methods that would invoke the RasterImage.PagesChanged event and what values are expected.

MethodValues Expected
RasterImage.AddPage

For the source image (the image parameter): Action is RasterImagePagesChangedAction.Removed, StartIndex is the current page (RasterImage.Page) and Count is 1.

For the destination image (The this or Me in Visual basic image): Action is RasterImagePagesChangedAction.Added, StartIndex is RasterImage.PageCount since the pages are added at the end and Count is 1.

RasterImage.AddPages

For the source image (the image parameter): Action is RasterImagePagesChangedAction.Removed, StartIndex is the value of the startIndex parameter and Count is the value of the count parameter.

For the destination image (The this or Me in Visual basic image): Action is RasterImagePagesChangedAction.Added, StartIndex is RasterImage.PageCount since the pages are added at the end and Count is the value of the count parameter.

RasterImage.RemovePageAtAction is RasterImagePagesChangedAction.Removed, StartIndex is the value of the pageIndex and Count is 1.
RasterImage.RemovePagesAction is RasterImagePagesChangedAction.Removed, StartIndex is the value of the startIndex parameter and Count is the value of the count parameter.
RasterImage.RemoveAllPagesAction is RasterImagePagesChangedAction.Removed, StartIndex is 1 and Count is RasterImage.PageCount.
RasterImage.InsertPage

For the source image (the image parameter): Action is RasterImagePagesChangedAction.Removed, StartIndex is the current page (RasterImage.Page) and Count is 1.

For the destination image (The this or Me in Visual basic image): Action is RasterImagePagesChangedAction.Added, StartIndex is the value of the index parameter and Count is 1.

RasterImage.InsertPages

For the source image (the image parameter): Action is RasterImagePagesChangedAction.Removed, StartIndex is the value of the startIndex parameter and Count is the value of the count parameter.

For the destination image (The this or Me in Visual basic image): Action is RasterImagePagesChangedAction.Added, StartIndex is the value of the index parameter and Count is the value of the count parameter.

RasterImage.DisposeAction is RasterImagePagesChangedAction.Removed, StartIndex is 1 and Count is the number of pages in the current RasterImage.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Leadtools.RasterImagePagesChangedEventArgs

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also