NumberPart<T> Class
Represents a numeric part that uses a format for text conversion and supports spinning.
public class NumberPart<T> : NumberPartBase<T>, ISpinnablePart<T?>, IPart where T : struct, INumber<T>, IMinMaxValue<T>
- Type Parameters:
-
T-The part value type.
- Inheritance:
- object PartBase<T?> FormattedPartBase<T?> NumberPartBase<T> object
- Derived:
- FloatingPointNumberPart<T> Int32Part
- Implements:
- ISpinnablePart<T?> IPart
Constructors
NumberPart(string?)
Initializes an instance of the class.
public NumberPart(string? format = null)
| Parameter | Type | Description |
|---|---|---|
| format | string | The numeric or composite format. |
See Also
Inherited Members
- NumberPartBase<T>.IncrementValue(T, T, bool, T, T, SpinWrapping, int, bool)
- NumberPartBase<T>.TryParseText(IList<IPart>, string, int, CultureInfo, out int)
- NumberPartBase<T>.DefaultLargeChange
- NumberPartBase<T>.DefaultSmallChange
- NumberPartBase<T>.IsComposited
- NumberPartBase<T>.MaximumValue
- NumberPartBase<T>.MinimumValue
- FormattedPartBase<T?>.CoerceFormat(string)
- FormattedPartBase<T?>.IsTextInputAllowed(string, int, CultureInfo)
- FormattedPartBase<T?>.OnFormatChanged()
- FormattedPartBase<T?>.ToString()
- FormattedPartBase<T?>.Format
- PartBase<T?>.IsEditable
- PartBase<T?>.IsLiteral
- PartBase<T?>.IsOptional
- PartBase<T?>.Length
- PartBase<T?>.StartOffset
- PartBase<T?>.StringValue
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)