C# 클래스 ArcDataBinding.FieldPropertyDescriptor

This class provides a PropertyDescriptor for a single field of an IRow
This class can be used by an ITypedList implementation to provide a property description for a single field in an ITable.
상속: System.ComponentModel.PropertyDescriptor
파일 보기 프로젝트 열기: Esri/arcobjects-sdk-community-samples 1 사용 예제들

공개 메소드들

메소드 설명
CanResetValue ( object component ) : bool

Returns whether resetting an object changes its value.

FieldPropertyDescriptor ( ITable wrappedTable, string fieldName, int fieldIndex ) : System

Initializes a new instance of the FieldPropertyDescriptor class.

GetValue ( object component ) : object

Gets the current value of the property on a component.

This will return the field value for all fields apart from geometry, raster and Blobs. These fields will return the string equivalent of the geometry type.

ResetValue ( object component ) : void

Resets the value for this property of the component to the default value.

SetValue ( object component, object value ) : void

Sets the value of the component to a different value.

If the field this instance represents does not have a coded value domain, this method simply sets the given value and stores the row within an edit operation. If the field does have a coded value domain, the method first needs to check that the given value is valid. If we are displaying the coded values, the value passed to this method will be a string and we will need to see if it is one of the names in the cv domain. If we are not displaying the coded values, we will still need to check that the given value is within the domain. If the value is not within the domain, an error will be displayed and the method will return. Note that the string comparison is case sensitive.

ShouldSerializeValue ( object component ) : bool

When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.

비공개 메소드들

메소드 설명
EsriFieldTypeToSystemType ( IField field ) : Type

Converts the specified ESRI field type to a .NET type.

GetGeometryTypeAsString ( object value ) : string

Gets the geometry type as string.

메소드 상세

CanResetValue() 공개 메소드

Returns whether resetting an object changes its value.
public CanResetValue ( object component ) : bool
component object The component to test for reset capability. /// This will be an IRow
리턴 bool

FieldPropertyDescriptor() 공개 메소드

Initializes a new instance of the FieldPropertyDescriptor class.
public FieldPropertyDescriptor ( ITable wrappedTable, string fieldName, int fieldIndex ) : System
wrappedTable ITable The wrapped table.
fieldName string Name of the field within wrappedTable.
fieldIndex int Index of the field within wrappedTable.
리턴 System

GetValue() 공개 메소드

Gets the current value of the property on a component.
This will return the field value for all fields apart from geometry, raster and Blobs. These fields will return the string equivalent of the geometry type.
public GetValue ( object component ) : object
component object The component (an IRow) with the property for /// which to retrieve the value.
리턴 object

ResetValue() 공개 메소드

Resets the value for this property of the component to the default value.
public ResetValue ( object component ) : void
component object The component (an IRow) with the property value /// that is to be reset to the default value.
리턴 void

SetValue() 공개 메소드

Sets the value of the component to a different value.
If the field this instance represents does not have a coded value domain, this method simply sets the given value and stores the row within an edit operation. If the field does have a coded value domain, the method first needs to check that the given value is valid. If we are displaying the coded values, the value passed to this method will be a string and we will need to see if it is one of the names in the cv domain. If we are not displaying the coded values, we will still need to check that the given value is within the domain. If the value is not within the domain, an error will be displayed and the method will return. Note that the string comparison is case sensitive.
public SetValue ( object component, object value ) : void
component object The component (an IRow) with the property value /// that is to be set.
value object The new value.
리턴 void

ShouldSerializeValue() 공개 메소드

When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
public ShouldSerializeValue ( object component ) : bool
component object The component (an IRow) with the property to be examined for /// persistence.
리턴 bool