Provides access to members that return and set properties of a feature.
Members
Name | Description | |
---|---|---|
Class | The Object Class for the row. | |
Delete | Deletes the row. | |
Extent | The extent of the feature. | |
FeatureType | The type of the feature. | |
Fields | The fields Collection for this row buffer. | |
HasOID | Indicates if the row has an OID. | |
OID | The OID for the row. | |
Shape | A reference to the default shape for the feature. | |
ShapeCopy | A cloned copy of the default shape for the feature. | |
Store | Stores the row. | |
Table | The Table for the row. | |
Value | The value of the field with the specified index. |
IFeature.Extent Property
The extent of the feature.
Public ReadOnly Property Extent As IEnvelope
public IEnvelope Extent {get;}
IFeature.FeatureType Property
The type of the feature.
Public ReadOnly Property FeatureType As esriFeatureType
public esriFeatureType FeatureType {get;}
IFeature.Shape Property
A reference to the default shape for the feature.
Public Property Shape As IGeometry
public IGeometry Shape {get; set;}
Remarks
The basic process to change the shape of a feature is:
1) Get the feature's existing geometry through IFeature.ShapeCopy or create a new geometry2) Modify the geometry3) Set the feature's geometry using IFeature.Shape4) Store the feature
All edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.
IFeature.ShapeCopy Property
A cloned copy of the default shape for the feature.
Public ReadOnly Property ShapeCopy As IGeometry
public IGeometry ShapeCopy {get;}
Remarks
The ShapeCopyproperty is a cloned copy of the feature�s Shape. When modifying the geometry of a feature or a set of features, use the ShapeCopy property to obtain a copy of the feature's geometry, perform the modification on the geometries, then apply the modifications by setting the geometry to the Shape property.
Inherited Interfaces
Interfaces | Description |
---|---|
IObject | Provides access to the class the row belongs to. |
IRow | Provides access to members that return information about the row, the table the row belongs to and storing and deleting the row. |
IRowBuffer | Provides access to members used for getting and modifying a rows values and for getting the fields in the row. |
Classes that implement IFeature
Classes | Description |
---|---|
Feature | Esri Feature. |
Remarks
Features are spatial Objects. They are contained in a feature class in the same way that a row is contained in a table, and an object is contained in an object class. A feature has an associated shape, the type of which is defined by the feature class. The possible shape objects are Point, Multipoint, Multipatch, Polyline, and Polygon - these are all objects in the Geometry library. For more details, see the IGeometryDefinterface.
One thing to note is that all features still have the same core geometry types of point, multipoint, polyline, polygon and multipatch; an example of this is the annotation feature, whose geometry type is polygon - this represents the envelope of the text element.
The IFeatureinterface extends the IObjectand IRowinterfaces, and as such, the documentation for those interfaces applies to this interface. The additional functionality relates to the features' shapes, accessed and set through the Shapeproperty. This can be much more convenient than the alternative of using the Valueproperty, since you don�t have to determine the index of the shape field. The Shapeproperty is the main link in ArcObjects between the geometry and geodatabase object models.
The ShapeCopyproperty is a cloned copy of the feature�s Shape. When modifying the geometry of a feature or a set of features, use the ShapeCopy property to obtain a copy of the feature's geometry, perform the modification on the geometries, then apply the modifications by setting the geometry to the Shape property.
There are several Feature subclasses which can also be accessed using the IFeature interface. These include annotation, dimension, and network features.