This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Interfaces > IV > IVectorizationEvents Interface (ArcObjects .NET 10.4 SDK) |
Provides access to vectorization events. Implement it to listen for specific events that occur during a vectorization session.
Description | ||
---|---|---|
OnBackgroundValueChanged | Called when the background value changed. | |
OnForegroundClassIndexChanged | Called when the foreground color changed. | |
OnForegroundValueChanged | Called when the foreground value changed. | |
OnRasterTargetChanged | Called when the target layer changed. | |
OnVectorizationBatchPropertiesChanged | Called when the Vectorization Batch Properties change. |
CoClasses and Classes | Description |
---|---|
Vectorization | The Vectorization ArcMap Extension. |
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.");
}
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