Int32RectEditBox Class
Represents a Int32Rect
edit box.
public class Int32RectEditBox : PartEditBoxBase<Int32Rect?>, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control PartEditBoxBase<Nullable<Int32Rect>> Object
Constructors
Int32RectEditBox()
Initializes an instance of the Int32RectEditBox
class.
public Int32RectEditBox()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public Int32Rect DefaultValue { get; set; }
Property Value
- Int32Rect:
The value to set when incrementing/decrementing from a null value. The default value is
0
.
Format
Gets or sets the number format string.
public string Format { get; set; }
Property Value
- String:
The number format string. The default value is
"G"
.
LargeChange
Gets or sets the large change value.
public Int32Rect LargeChange { get; set; }
Property Value
- Int32Rect:
The large change value. The default value is
5
.
Maximum
Gets or sets the highest possible value.
Minimum
Gets or sets the lowest possible value.
ResolvedFormat
Gets the resolved number format string.
SmallChange
Gets or sets the small change value.
public Int32Rect SmallChange { get; set; }
Property Value
- Int32Rect:
The small change value. The default value is
1
.
Methods
CoerceValidValue(Nullable<Int32Rect>)
Coerces the value to be within range.
protected override Int32Rect? CoerceValidValue(Int32Rect? value)
Parameter | Type | Description |
---|---|---|
value | Nullable<Int32Rect> | The value to coerce. |
Returns
ConvertToString(Nullable<Int32Rect>)
Converts the specified value to a string representation.
protected override string ConvertToString(Int32Rect? valueToConvert)
Parameter | Type | Description |
---|---|---|
valueToConvert | Nullable<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<Nullable<Int32Rect>>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
IsValidValue(Nullable<Int32Rect>)
Returns whether the specified value is valid.
protected override bool IsValidValue(Int32Rect? value)
Parameter | Type | Description |
---|---|---|
value | Nullable<Int32Rect> | The value to examine. |
Returns
- Boolean:
true
if the value is valid; otherwise,false
.
RaiseValueChangedEvent()
Raises the ValueChanged event.
protected override void RaiseValueChangedEvent()
ResetValue()
Resets the value to a default value.
protected override void ResetValue()
TryConvertFromString(String, Boolean, out Nullable<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 | Boolean | Whether the returned value should be coerced to fall within the allowed value range. |
value | Nullable<Int32Rect> | Returns the value for the specified text. |
Returns
- Boolean:
true
if the text was converted to a value successfully; otherwise,false
.
Events
ValueChanged
Occurs after the Value
property value changes.
Fields
DefaultValueProperty
Identifies the DefaultValue dependency property. This field is read-only.
public static readonly DependencyProperty DefaultValueProperty
FormatProperty
Identifies the Format dependency property. This field is read-only.
public static readonly DependencyProperty FormatProperty
LargeChangeProperty
Identifies the LargeChange dependency property. This field is read-only.
public static readonly DependencyProperty LargeChangeProperty
MaximumProperty
Identifies the Maximum dependency property. This field is read-only.
public static readonly DependencyProperty MaximumProperty
MinimumProperty
Identifies the Minimum dependency property. This field is read-only.
public static readonly DependencyProperty MinimumProperty
ResolvedFormatProperty
Identifies the ResolvedFormat dependency property. This field is read-only.
public static readonly DependencyProperty ResolvedFormatProperty
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- PartEditBoxBase<Nullable<Int32Rect>>.ActivePartIndexProperty
- PartEditBoxBase<Nullable<Int32Rect>>.CommitTriggersProperty
- PartEditBoxBase<Nullable<Int32Rect>>.HasPopupProperty
- PartEditBoxBase<Nullable<Int32Rect>>.InlinesProperty
- PartEditBoxBase<Nullable<Int32Rect>>.InputScopeNameValueProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IntermediateValueProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsEditableProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsNullAllowedProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsPopupButtonVisibleProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsPopupOpenProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsReadOnlyProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsSpinnerVisibleProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsUndoEnabledProperty
- PartEditBoxBase<Nullable<Int32Rect>>.PlaceholderTextProperty
- PartEditBoxBase<Nullable<Int32Rect>>.PopupBackgroundProperty
- PartEditBoxBase<Nullable<Int32Rect>>.PopupBorderBrushProperty
- PartEditBoxBase<Nullable<Int32Rect>>.PopupPickerStyleProperty
- PartEditBoxBase<Nullable<Int32Rect>>.SpinWrappingProperty
- PartEditBoxBase<Nullable<Int32Rect>>.TextAlignmentProperty
- PartEditBoxBase<Nullable<Int32Rect>>.ValueProperty
- PartEditBoxBase<Nullable<Int32Rect>>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<Nullable<Int32Rect>>.SpinnerVisibilityProperty
- PartEditBoxBase<Nullable<Int32Rect>>.UsageContextProperty
- PartEditBoxBase<Nullable<Int32Rect>>.Commit()
- PartEditBoxBase<Nullable<Int32Rect>>.Commit(Boolean)
- PartEditBoxBase<Nullable<Int32Rect>>.InvalidateParts()
- PartEditBoxBase<Nullable<Int32Rect>>.OnApplyTemplate()
- PartEditBoxBase<Nullable<Int32Rect>>.OnCreateAutomationPeer()
- PartEditBoxBase<Nullable<Int32Rect>>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnIntermediateValueChanged(Nullable<Int32Rect>, Nullable<Int32Rect>)
- PartEditBoxBase<Nullable<Int32Rect>>.OnIsNullAllowedChanged(Boolean, Boolean)
- PartEditBoxBase<Nullable<Int32Rect>>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnPopupOpened()
- PartEditBoxBase<Nullable<Int32Rect>>.OnValueChanged(Nullable<Int32Rect>, Nullable<Int32Rect>)
- PartEditBoxBase<Nullable<Int32Rect>>.ProcessTextInput(String)
- PartEditBoxBase<Nullable<Int32Rect>>.SelectAll()
- PartEditBoxBase<Nullable<Int32Rect>>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<Nullable<Int32Rect>>.ActivePartIndex
- PartEditBoxBase<Nullable<Int32Rect>>.CommitTriggers
- PartEditBoxBase<Nullable<Int32Rect>>.CurrentSelectionLength
- PartEditBoxBase<Nullable<Int32Rect>>.CurrentSelectionStartOffset
- PartEditBoxBase<Nullable<Int32Rect>>.CurrentText
- PartEditBoxBase<Nullable<Int32Rect>>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<Nullable<Int32Rect>>.HasPopup
- PartEditBoxBase<Nullable<Int32Rect>>.Inlines
- PartEditBoxBase<Nullable<Int32Rect>>.InputScopeNameValue
- PartEditBoxBase<Nullable<Int32Rect>>.IntermediateValue
- PartEditBoxBase<Nullable<Int32Rect>>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<Nullable<Int32Rect>>.IsEditable
- PartEditBoxBase<Nullable<Int32Rect>>.IsNullAllowed
- PartEditBoxBase<Nullable<Int32Rect>>.IsPopupButtonVisible
- PartEditBoxBase<Nullable<Int32Rect>>.IsPopupOpen
- PartEditBoxBase<Nullable<Int32Rect>>.IsReadOnly
- PartEditBoxBase<Nullable<Int32Rect>>.IsSpinnerVisible
- PartEditBoxBase<Nullable<Int32Rect>>.IsUndoEnabled
- PartEditBoxBase<Nullable<Int32Rect>>.Parts
- PartEditBoxBase<Nullable<Int32Rect>>.PlaceholderText
- PartEditBoxBase<Nullable<Int32Rect>>.PopupBackground
- PartEditBoxBase<Nullable<Int32Rect>>.PopupBorderBrush
- PartEditBoxBase<Nullable<Int32Rect>>.PopupPickerStyle
- PartEditBoxBase<Nullable<Int32Rect>>.ResetValueCommand
- PartEditBoxBase<Nullable<Int32Rect>>.SmallDecrementValueCommand
- PartEditBoxBase<Nullable<Int32Rect>>.SmallIncrementValueCommand
- PartEditBoxBase<Nullable<Int32Rect>>.SpinWrapping
- PartEditBoxBase<Nullable<Int32Rect>>.TextAlignment
- PartEditBoxBase<Nullable<Int32Rect>>.Value
- PartEditBoxBase<Nullable<Int32Rect>>.IsNonDefaultUsageContext
- PartEditBoxBase<Nullable<Int32Rect>>.SpinnerVisibility
- PartEditBoxBase<Nullable<Int32Rect>>.UsageContext
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()