DbfColumn¶
Namespace: ThinkGeo.Core
This class represents the column information specific to a DBF column.
public class DbfColumn : FeatureSourceColumn
Inheritance Object → FeatureSourceColumn → DbfColumn
Properties¶
ColumnType¶
This property returns the type of the column in the DBF.
public DbfColumnType ColumnType { get; set; }
Property Value¶
Remarks:
None
Length¶
This property returns the length of the column in the DBF.
public int Length { get; set; }
Property Value¶
Remarks:
None
DecimalLength¶
This property returns the decimal length of the column in the DBF.
public int DecimalLength { get; set; }
Property Value¶
Remarks:
This is the number of decimal places the number represents. This is only applicable if the column type is numeric.
ColumnName¶
This property returns the name of the column.
public string ColumnName { get; set; }
Property Value¶
Remarks:
None
TypeName¶
This property returns the type name of the column.
public string TypeName { get; set; }
Property Value¶
Remarks:
This property is freeform and the type name is not tied to anything. It is wise to try and use familiar type names such as string, integer, date, etc., although it may not fit every different type of FeatureSource. We suggest thar you avoid using this property unless you know the types beforehand or simply want them for display purposes.
MaxLength¶
This property returns the maximum length of the column.
public int MaxLength { get; set; }
Property Value¶
Remarks:
The maximum length is user defined and not in any way enforced in our default FeatureSource implementation. It is mainly for display purposes or when dealing with a known Feature Source type.
Constructors¶
DbfColumn(String, DbfColumnType, Int32, Int32)¶
This method is the constructor for the DbfColumn.
public DbfColumn(string columnName, DbfColumnType columnType, int length, int decimalLength)
Parameters¶
columnName
String
This parameter represents the name of the column in the DBF.
columnType
DbfColumnType
This parameter represents the type of the column in the DBF.
length
Int32
This parameter represents the length of the column in the DBF.
decimalLength
Int32
This parameter represents the number of decimal places the column has, if it is a
numeric type.
Remarks:
None