This document is archived and information here might be outdated.  Recommended version.


IVectorizationEvents Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Interfaces > IV > IVectorizationEvents Interface
ArcGIS Developer Help

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

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

Classes that implement IVectorizationEvents

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