
'宣言 Public Class GcNumber Inherits FieldsEditorControl
public class GcNumber : FieldsEditorControl
GcNumberコントロールは、正の値と負の値の数値入力を提供し、機能的な数値入力インターフェイスを迅速かつ効率的に設計できるようにします。 データ入力中、ユーザーはいつでもマイナス記号「-」を押して、値を正と負の間で切り替えることができます。 また、プラス記号「+」は、負の値を正の値に変更します。
GcNumberコントロールは、独自のFieldSetプロパティNumberFieldSet値を設定して、さまざまな数字パターン、さまざまな符号文字列、およびさまざまな区切り文字を使用できます。 このフォーマットを使用して、ユーザーの入力動作を制限できます。 さらに、MaxValueおよびMinValueプロパティを設定することにより、値の範囲を制限できます。
GcNumberコントロールサポートの表示フィールド。 新しいNumberDisplayFieldSetプロパティを設定するか、独自のコンテンツを変更できます。 次に、GcNumberは、コントロールがキーボードフォーカスを失ったときに、表示テキストを変更できます。
ドロップダウン計算機を開いて計算を簡単に操作できます。DropDownCalculatorStyleプロパティを設定することで、ドロップダウン計算機のビューと動作を定義できます。
対応している System.Windows.VisualState リスト:
l
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