Int32RectEditBox Class
Represents a Int32Rect edit box.
public class Int32RectEditBox : PartEditBoxBase<Int32Rect?>
- Inheritance:
- object Visual UIElement FrameworkElement Control PartEditBoxBase<Int32Rect?> object
Constructors
Int32RectEditBox()
Initializes an instance of the class.
public Int32RectEditBox()
Properties
DefaultValue
The value to set when incrementing/decrementing from a null value.
public Int32Rect DefaultValue { get; set; }
Property Value
- Int32Rect:
The default value is
0.
Format
The number format string.
LargeChange
The large change value.
public Int32Rect LargeChange { get; set; }
Property Value
- Int32Rect:
The default value is
5.
Maximum
The highest possible value.
public Int32Rect Maximum { get; set; }
Property Value
- Int32Rect
Minimum
The lowest possible value.
public Int32Rect Minimum { get; set; }
Property Value
- Int32Rect
ResolvedFormat
The resolved number format string.
SmallChange
The small change value.
public Int32Rect SmallChange { get; set; }
Property Value
- Int32Rect:
The default value is
1.
Methods
CoerceValidValue(Int32Rect?)
Coerces the value to be within range.
protected override Int32Rect? CoerceValidValue(Int32Rect? value)
| Parameter | Type | Description |
|---|---|---|
| value | Int32Rect? | The value to coerce. |
Returns
- Int32Rect?:
The coerced value.
ConvertToString(Int32Rect?)
Converts the specified value to a string representation.
protected override string ConvertToString(Int32Rect? valueToConvert)
| Parameter | Type | Description |
|---|---|---|
| valueToConvert | Int32Rect? | The value. |
Returns
- string:
The string representation of the specified value.
CreateIncrementalChangeRequest(IncrementalChangeRequestKind)
Creates an incremental change (spin) request.
protected override IncrementalChangeRequest<Int32Rect?> CreateIncrementalChangeRequest(IncrementalChangeRequestKind kind)
| Parameter | Type | Description |
|---|---|---|
| kind | IncrementalChangeRequestKind | The kind of request. |
Returns
- IncrementalChangeRequest<Int32Rect?>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
IsValidValue(Int32Rect?)
Tests whether the specified value is valid.
protected override bool IsValidValue(Int32Rect? value)
| Parameter | Type | Description |
|---|---|---|
| value | Int32Rect? | The value to examine. |
Returns
- bool:
trueif the value is valid; otherwise,false.
ResetValue()
Resets the value to a default value.
protected override void ResetValue()
TryConvertFromString(string?, bool, out Int32Rect??)
Tries to convert the specified text to a value.
protected override bool TryConvertFromString(string? textToConvert, bool canCoerce, out Int32Rect?? value)
| Parameter | Type | Description |
|---|---|---|
| textToConvert | string | The text. |
| canCoerce | bool | Whether the returned value should be coerced to fall within the allowed value range. |
| value | Int32Rect? | Returns the value for the specified text. |
Returns
- bool:
trueif the text was converted to a value successfully; otherwise,false.
Fields
DefaultValueProperty
Defines the DefaultValue property.
public static readonly DependencyProperty DefaultValueProperty
FormatProperty
Defines the Format property.
public static readonly DependencyProperty FormatProperty
LargeChangeProperty
Defines the LargeChange property.
public static readonly DependencyProperty LargeChangeProperty
MaximumProperty
Defines the Maximum property.
public static readonly DependencyProperty MaximumProperty
MinimumProperty
Defines the Minimum property.
public static readonly DependencyProperty MinimumProperty
ResolvedFormatProperty
Defines the ResolvedFormat property.
public static readonly DependencyProperty ResolvedFormatProperty
SmallChangeProperty
Defines the SmallChange property.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- PartEditBoxBase<Int32Rect?>.ActivePartIndexProperty
- PartEditBoxBase<Int32Rect?>.CommitTriggersProperty
- PartEditBoxBase<Int32Rect?>.HasPopupProperty
- PartEditBoxBase<Int32Rect?>.InlinesProperty
- PartEditBoxBase<Int32Rect?>.InputScopeNameValueProperty
- PartEditBoxBase<Int32Rect?>.IntermediateValueProperty
- PartEditBoxBase<Int32Rect?>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<Int32Rect?>.IsEditableProperty
- PartEditBoxBase<Int32Rect?>.IsInputFilteringEnabledProperty
- PartEditBoxBase<Int32Rect?>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<Int32Rect?>.IsNullAllowedProperty
- PartEditBoxBase<Int32Rect?>.IsPopupButtonVisibleProperty
- PartEditBoxBase<Int32Rect?>.IsPopupOpenProperty
- PartEditBoxBase<Int32Rect?>.IsReadOnlyProperty
- PartEditBoxBase<Int32Rect?>.IsSpinnerVisibleProperty
- PartEditBoxBase<Int32Rect?>.IsUndoEnabledProperty
- PartEditBoxBase<Int32Rect?>.PlaceholderTextProperty
- PartEditBoxBase<Int32Rect?>.PopupBackgroundProperty
- PartEditBoxBase<Int32Rect?>.PopupBorderBrushProperty
- PartEditBoxBase<Int32Rect?>.PopupPickerStyleProperty
- PartEditBoxBase<Int32Rect?>.SpinnerVisibilityProperty
- PartEditBoxBase<Int32Rect?>.SpinWrappingProperty
- PartEditBoxBase<Int32Rect?>.TextAlignmentProperty
- PartEditBoxBase<Int32Rect?>.UsageContextProperty
- PartEditBoxBase<Int32Rect?>.ValueProperty
- PartEditBoxBase<Int32Rect?>.Commit()
- PartEditBoxBase<Int32Rect?>.Commit(bool)
- PartEditBoxBase<Int32Rect?>.InvalidateParts()
- PartEditBoxBase<Int32Rect?>.IsTextInputAllowed(string)
- PartEditBoxBase<Int32Rect?>.OnApplyTemplate()
- PartEditBoxBase<Int32Rect?>.OnCreateAutomationPeer()
- PartEditBoxBase<Int32Rect?>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<Int32Rect?>.OnIntermediateValueChanged(Int32Rect?, Int32Rect?)
- PartEditBoxBase<Int32Rect?>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<Int32Rect?>.OnIsNullAllowedChanged(bool, bool)
- PartEditBoxBase<Int32Rect?>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<Int32Rect?>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<Int32Rect?>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<Int32Rect?>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<Int32Rect?>.OnPopupOpened()
- PartEditBoxBase<Int32Rect?>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<Int32Rect?>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<Int32Rect?>.OnValueChanged(Int32Rect?, Int32Rect?)
- PartEditBoxBase<Int32Rect?>.ProcessTextInput(string)
- PartEditBoxBase<Int32Rect?>.SelectAll()
- PartEditBoxBase<Int32Rect?>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<Int32Rect?>.ActivePartIndex
- PartEditBoxBase<Int32Rect?>.CommitTriggers
- PartEditBoxBase<Int32Rect?>.CurrentSelectionLength
- PartEditBoxBase<Int32Rect?>.CurrentSelectionStartOffset
- PartEditBoxBase<Int32Rect?>.CurrentText
- PartEditBoxBase<Int32Rect?>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<Int32Rect?>.HasPopup
- PartEditBoxBase<Int32Rect?>.Inlines
- PartEditBoxBase<Int32Rect?>.InputScopeNameValue
- PartEditBoxBase<Int32Rect?>.IntermediateValue
- PartEditBoxBase<Int32Rect?>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<Int32Rect?>.IsEditable
- PartEditBoxBase<Int32Rect?>.IsInputFilteringEnabled
- PartEditBoxBase<Int32Rect?>.IsNonDefaultUsageContext
- PartEditBoxBase<Int32Rect?>.IsNullAllowed
- PartEditBoxBase<Int32Rect?>.IsPopupButtonVisible
- PartEditBoxBase<Int32Rect?>.IsPopupOpen
- PartEditBoxBase<Int32Rect?>.IsReadOnly
- PartEditBoxBase<Int32Rect?>.IsSpinnerVisible
- PartEditBoxBase<Int32Rect?>.IsUndoEnabled
- PartEditBoxBase<Int32Rect?>.Parts
- PartEditBoxBase<Int32Rect?>.PlaceholderText
- PartEditBoxBase<Int32Rect?>.PopupBackground
- PartEditBoxBase<Int32Rect?>.PopupBorderBrush
- PartEditBoxBase<Int32Rect?>.PopupPickerStyle
- PartEditBoxBase<Int32Rect?>.ResetValueCommand
- PartEditBoxBase<Int32Rect?>.SmallDecrementValueCommand
- PartEditBoxBase<Int32Rect?>.SmallIncrementValueCommand
- PartEditBoxBase<Int32Rect?>.SpinnerVisibility
- PartEditBoxBase<Int32Rect?>.SpinWrapping
- PartEditBoxBase<Int32Rect?>.TextAlignment
- PartEditBoxBase<Int32Rect?>.UsageContext
- PartEditBoxBase<Int32Rect?>.Value
- PartEditBoxBase<Int32Rect?>.ValueChanged