ArcObjects Library Reference (GeoDatabase)  

ITinFeatureEdit.CanReplace Method

Checks if the embedded object can be replaced by the new shape without creating spatial conflict.

[Visual Basic .NET]
Public Function CanReplace ( _
    ByVal pShape As IGeometry, _
    ByVal pSeed As ITinFeatureSeed, _
    ByVal spacing As Double _
) As Boolean
[C#]
public bool CanReplace (
    IGeometry pShape,
    ITinFeatureSeed pSeed,
    double spacing
);
[C++]
HRESULT CanReplace(
  IGeometry* pShape,
  ITinFeatureSeed* pSeed,
  double spacing,
  VARIANT_BOOL* pbCanReplace
);
[C++]

Parameters

pShape [in]

  pShape is a parameter of type IGeometry

pSeed [in]

  pSeed is a parameter of type ITinFeatureSeed

spacing [in]   spacing is a parameter of type double pbCanReplace [out, retval]   pbCanReplace is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns TRUE if the embedded TIN feature represented by the passed seed can be replaced with the proposed shape without creating a spatial conflict between it and another TIN feature.

The shape can be a point, polyline, or polygon.

The seed is a TIN node, edge, or triangle that is used to reference an existing TIN feature.

The spacing is used as a search distance around the proposed shape. If another TIN feature is within this distance a conflict exists.

See also ITinFeatureEdit::ElementsIgnoredInConflictTest.

See Also

ITinFeatureEdit Interface