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


IRasterSnappingProperties Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcScan > ESRI.ArcGIS.ArcScan > Interfaces > IR > IRasterSnappingProperties Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (ArcScan)  

IRasterSnappingProperties Interface

Provides access to members that control the behavior of the raster snapping environment.

Product Availability

Available with ArcGIS Desktop. Requires ArcScan Extension.

Description

The properties on this interface relate to the raster snapping agents in the Edtitor Snapping dialog and settings on the Raster Snapping options dialog.

Members

Name Description
Read/write property Centerline Indicates whether to snap to centerlines.
Read/write property Corner Indicates whether to snap to corners.
Read/write property Ends Indicates whether to snap to ends.
Read/write property Intersections Indicates whether to snap to intersections.
Read/write property MaxSolidWidth Maximum length of solids, measured in raster pixels.
Read/write property MinSolidWidth Minimum length of solids, measured in raster pixels.
Read/write property Solid Indicates whether to snap to solid.

CoClasses that implement IRasterSnappingProperties

CoClasses and Classes Description
Vectorization The Vectorization ArcMap Extension.

Remarks

Note that other properties used in raster snapping are obtained through additional interfaces. eg. MaxLineWidth from IVectorizationBatchProperties::MaxLineWidth etc

[C#]

The following code excerpt shows the method of obtaining an IRasterSnappingProperties reference and set the Centerlines state.

public void SetCenterlineState()
{
  //You can get app from ICommand :: OnCreate() hook parameter
  IRasterSnappingProperties rasterSnappingProp=
    app.FindExtensionByName("ESRI ArcScan Tools") as IRasterSnappingProperties;

  rasterSnappingProp.Centerline=true;
}