SPREAD for WPF 3.0J - GcSpreadGrid
GcDateTime クラス
メンバ 

GrapeCity.Windows.SpreadGrid.Editors 名前空間 : GcDateTime クラス
System.DateTime 型の値について編集機能と表示機能を拡張するコントロールを表します。
オブジェクト モデル
GcDateTime クラスDateField クラスBlackoutDatesCollection クラスCalendarDateRange クラスControlValidatorSet クラスDateDisplayFieldSet クラスDateFieldSet クラス
シンタックス
'宣言
 
Public Class GcDateTime 
   Inherits FieldsEditorControl
public class GcDateTime : FieldsEditorControl 
解説

GcDateTime コントロールを使用すると、機能的な日時入力インタフェースを迅速かつ効率的に設計できます。

ユーザーはテキストフィールドに直接日時を入力できます。そうすると、入力した日時が Text プロパティと Value プロパティに設定されます。また、ドロップダウンカレンダーから日付を選択することもでき、この場合も選択した日付が Text プロパティと Value プロパティに設定されます。GcDateTime の FieldSet に含まれる Fields を変更すると、同じ値を異なる表示テキストで表現できます。

表示書式を変更することで、コントロールがキーボードフォーカスを失ったときにフィールドの内容を変更できます。これは GcDateTime の DisplayText プロパティに影響します。

ユーザーはドロップダウンカレンダーから DateTime を選択できます。DropDownCalendarStyle によってドロップダウンカレンダーを設定することもできます。

サポートされている System.Windows.VisualState の一覧:

l

VisualStateGroup 名

VisualState 名

説明

CommonStates

Normal

コントロールが通常状態のときの外観を表します。

CommonStates

Disabled

System.Windows.UIElement.IsEnabledfalse のときの外観を表します。

CommonStates

ReadOnly

IsReadOnlytrue のときの外観を表します。

CommonStates

MouseOver

System.Windows.UIElement.IsMouseOvertrue のときの外観を表します。

ActiveStates

ActiveDropDown

IsActiveIsDropDownOpen がどちらも true のときの外観を表します。

ActiveStates

Active

IsActivetrue のときの外観を表します。

ActiveStates

Inactive

IsActivefalse のときの外観を表します。

InputStates

Full

IsFulltrue のときの外観を表します。

InputStates

Completed

IsCompletedtrue のときの外観を表します。

InputStates

Empty

IsEmptytrue のときの外観を表します。

InputStates

Part

IsFullIsCompletedIsEmpty のすべてが false のときの外観を表します。

ValidationStates

Valid

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)false を返すときの外観を表します。

ValidationStates

InvalidFocused

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)true を返し、なおかつコントロールにフォーカスがあるときの外観を表します。

ValidationStates

InvalidUnfocused

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject)true を返し、なおかつコントロールにフォーカスがないときの外観を表します。

継承階層

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     GrapeCity.Windows.SpreadGrid.Editors.ControlBase
                        GrapeCity.Windows.SpreadGrid.Editors.EditBase
                           GrapeCity.Windows.SpreadGrid.Editors.FieldsEditorControl
                              GrapeCity.Windows.SpreadGrid.Editors.GcDateTime
                                 GrapeCity.Windows.SpreadGrid.Editors.DateTimeEditElement

参照

GcDateTime メンバ
GrapeCity.Windows.SpreadGrid.Editors 名前空間