編輯

共用方式為


_ColumnFormat.FieldFormat Property

Definition

Returns or sets an Integer (int in C#) value that represents the display format of the property to which the ColumnFormat object is associated. Read/write.

public:
 property int FieldFormat { int get(); void set(int value); };
public int FieldFormat { get; set; }
Public Property FieldFormat As Integer

Property Value

Remarks

The value of this property is a constant from an enumeration, where the enumeration is dependent on the value of the FieldType property for the ColumnFormat object:

FieldType valueFieldFormat enumeration
olCurrency OlFormatCurrency
olFormatDateTime OlFormatDateTime
olDuration OlFormatDuration
olInteger OlFormatInteger
olKeywords OlFormatKeywords
olNumber OlFormatNumber
olPercent OlFormatPercent
olText OlFormatText
olYesNo OlFormatYesNo
olEnumeration OlFormatEnumeration
olSmartFrom OlFormatSmartFrom

For field types not listed in the above table, the value of this property is ignored.

Applies to