IFieldFormattingOptions IFieldFormattingOptions IFieldFormattingOptions IFieldFormattingOptions Interface

定義

定義要套用到欄位範本使用者控制項之最常見格式化選項的介面。Defines an interface for common formatting-option properties to be applied to field template user controls.

public interface class IFieldFormattingOptions
public interface IFieldFormattingOptions
type IFieldFormattingOptions = interface
Public Interface IFieldFormattingOptions
衍生

屬性

ApplyFormatInEditMode ApplyFormatInEditMode ApplyFormatInEditMode ApplyFormatInEditMode

取得或設定值,指出欄位處於編輯模式時,DataFormatString 屬性所指定的格式化字串是否要套用到欄位值。Gets a value that indicates whether the formatting string that is specified by the DataFormatString property is applied to field values when the field is in edit mode.

ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull ConvertEmptyStringToNull

取得值,表示在資料來源中更新資料欄位時,是否將空字串值 ("") 自動轉換為 null 值。Gets a value that indicates whether empty string values ("") are automatically converted to null values when the data field is updated in the data source.

DataFormatString DataFormatString DataFormatString DataFormatString

取得指定欄位值顯示格式的字串。Gets a string that specifies the display format for the value of the field.

HtmlEncode HtmlEncode HtmlEncode HtmlEncode

取得指出控制項資料在轉譯前是否為 HTML 編碼的值。Gets a value that indicates whether the data for the control is HTML-encoded before it is rendered.

NullDisplayText NullDisplayText NullDisplayText NullDisplayText

取得在欄位值設為 null 時要在欄位上顯示的標題。Gets the caption that is displayed for a field when the field value is null.

擴充方法

ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String)

針對已驗證的控制項傳回使用者提供的值。Returns the value provided by a user for a control that is being validated.

FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

適用於