Visual Basic (Declaration) | |
---|---|
Public Class RasterImagePagesChangedEventArgs Inherits EventArgs |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class RasterImagePagesChangedEventArgs : EventArgs |
Managed Extensions for C++ | |
---|---|
public __gc class RasterImagePagesChangedEventArgs : public EventArgs |
C++/CLI | |
---|---|
public ref class RasterImagePagesChangedEventArgs : public EventArgs |
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.
Method | Values 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.RemovePageAt | Action is RasterImagePagesChangedAction.Removed, StartIndex is the value of the pageIndex and Count is 1. |
RasterImage.RemovePages | Action is RasterImagePagesChangedAction.Removed, StartIndex is the value of the startIndex parameter and Count is the value of the count parameter. |
RasterImage.RemoveAllPages | Action 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.Dispose | Action is RasterImagePagesChangedAction.Removed, StartIndex is 1 and Count is the number of pages in the current RasterImage. |
System.Object
System.EventArgs
Leadtools.RasterImagePagesChangedEventArgs
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