SPREAD for WPF 3.0J - GcSpreadSheet
GcNumber クラス
メンバ 

GrapeCity.Wpf.SpreadSheet.CellType アセンブリ > GrapeCity.Wpf.SpreadSheet.CellType.Editors 名前空間 : GcNumber クラス
数字の入力やドロップダウン電卓による計算を実行できる数値エディタコントロールを表します。
オブジェクト モデル
GcNumber クラス
シンタックス
'宣言
 
Public Class GcNumber 
   Inherits FieldsEditorControl
public class GcNumber : FieldsEditorControl 
解説

GcNumber コントロールは正および負の数値の入力機能を備えており、機能的な数値入力インタフェースを迅速かつ効率的に設計するのに役立ちます。ユーザーはデータの入力中にいつでもマイナス記号("-")を押して正の値を負に切り替えることができます。また、プラス記号("+")を押すと負の値が正に変わります。

GcNumber コントロールには固有の FieldSet プロパティがあり、このプロパティに NumberFieldSet 値を設定することで、異なる桁パターン、符号文字列、および小数点記号を使用できます。書式を使用してユーザーの入力動作を制限できます。さらに、MaxValue プロパティと MinValue プロパティを設定することによって値の範囲を限定することも可能です。

GcNumber コントロールは表示フィールドをサポートします。新しい NumberDisplayFieldSet プロパティを設定するか、その内容を変更すると、コントロールがキーボードフォーカスを失ったときに GcNumber の表示テキストが変更されます。

ユーザーはドロップダウン電卓を開いて簡単に計算を実行できます。ドロップダウン電卓の表示や動作は DropDownCalculatorStyle プロパティによって定義します。

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

VisualStateGroup 名 VisualState 名 説明
CommonStates Normal コントロールが通常状態のときの外観を表します。
CommonStates Disabled System.Windows.UIElement.IsEnabled が false のときの外観を表します。
CommonStates ReadOnly IsReadOnly が true のときの外観を表します。
CommonStates MouseOver System.Windows.UIElement.IsMouseOver が true のときの外観を表します。
ActiveStates ActiveDropDown IsActive と IsDropDownOpen がどちらも true のときの外観を表します。
ActiveStates Active IsActive が true のときの外観を表します。
ActiveStates Inactive IsActive が false のときの外観を表します。
InputStates Full FieldsEditorControl.IsFull が true のときの外観を表します。
InputStates Completed FieldsEditorControl.IsCompleted が true のときの外観を表します。
InputStates Empty FieldsEditorControl.IsEmpty が true のときの外観を表します。
InputStates Part FieldsEditorControl.IsFull、FieldsEditorControl.IsCompleted、FieldsEditorControl.IsEmpty のすべてが false のときの外観を表します。
SignStates Negative SignState が GrapeCity.Windows.InputMan.SignState.Negative のときの外観を表します。
SignStates Positive SignState が GrapeCity.Windows.InputMan.SignState.Positive のときの外観を表します。
SignStates NoSign SignState が GrapeCity.Windows.InputMan.SignState.None を返すときの外観を表します。
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.Wpf.SpreadSheet.CellType.Editors.ControlBase
                        GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase
                           GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsEditorControl
                              GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber

参照

GcNumber メンバ
GrapeCity.Wpf.SpreadSheet.CellType.Editors 名前空間