ArcObjects Library Reference (ArcScan)  

IVectorizationEvents Interface

Provides access to vectorization events. Implement it to listen for specific events that occur during a vectorization session.

Product Availability

Available with ArcGIS Desktop. Requires ArcScan Extension.

Members

Description
Event OnBackgroundValueChanged Called when the background value changed.
Event OnForegroundClassIndexChanged Called when the foreground color changed.
Event OnForegroundValueChanged Called when the foreground value changed.
Event OnRasterTargetChanged Called when the target layer changed.
Event OnVectorizationBatchPropertiesChanged Called when the Vectorization Batch Properties change.

CoClasses that implement IVectorizationEvents

CoClasses and Classes Description
Vectorization The Vectorization ArcMap Extension.

Remarks

 


 

[C#]

The following code shows an example of using this interface in C#.

 public void WireArcScanEvents(IApplication app)
 {
  //You can get app from ICommand :: OnCreate() hook parameter
  if (app != null)
  {
    IVectorization vectorization = app.FindExtensionByName("ESRI ArcScan Tools") as IVectorization;
    ((IVectorizationEvents_Event)vectorization).OnRasterTargetChanged +=       new IVectorizationEvents_OnRasterTargetChangedEventHandler(OnRasterTargetChanged);  }
}
void OnRasterTargetChanged()
{
  System.Windows.Forms.MessageBox.Show("Raster Changed.");
}
   
[Visual Basic .NET]

The following code shows an example of using this interface in VBNet.

  Public Sub WireArcScanEvents(ByVal app As IApplication)
    'You can get app from ICommand :: OnCreate() hook parameter
    If Not app Is Nothing Then
      Dim vectorization As ESRI.ArcGIS.ArcScan.IVectorization = TryCast(app.FindExtensionByName("ESRI ArcScan Tools"), IVectorization)

      'Wire ArcScan events
      AddHandler (CType(vectorization, ESRI.ArcGIS.ArcScan.IVectorizationEvents_Event).OnRasterTargetChanged , _
        AddressOf OnRasterTargetChanged
    End If
  End Sub

  Private Sub OnRasterTargetChanged()
    System.Windows.Forms.MessageBox.Show("Raster Changed.")
  End Sub