CheckBoxField.GetDesignTimeValue 方法

定義

擷取在設計工具中呈現 CheckBoxField 物件時用於欄位值的值。

protected:
 override System::Object ^ GetDesignTimeValue();
protected override object GetDesignTimeValue ();
override this.GetDesignTimeValue : unit -> obj
Protected Overrides Function GetDesignTimeValue () As Object

傳回

Object

一律傳回 true

備註

方法 GetDesignTimeValue 是協助程式方法,用來判斷在設計工具中呈現物件時 CheckBoxField ,欄位要顯示的值。 如果在設計階段無法從資料來源擷取實際資料,則會改為顯示此方法所傳回的值。

給繼承者的注意事項

擴充 CheckBoxField 類別時,您可以覆寫這個方法,以傳回不同的值,以顯示設計工具中的欄位。

適用於