DataGridRectColumn Class
Represents a data-bound column for use in a DataGrid
that utilizes the RectEditBox control.
public class DataGridRectColumn : DataGridPartEditBoxColumnBase<Rect?>
- Inheritance:
- Object DispatcherObject DependencyObject DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<Nullable<Rect>> Object
Constructors
DataGridRectColumn()
Initializes an instance of the DataGridRectColumn class.
public DataGridRectColumn()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public Rect DefaultValue { get; set; }
Property Value
- Rect:
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"
.
IsNaNAllowed
Gets or sets whether NaN is accepted as a component value.
public bool IsNaNAllowed { get; set; }
Property Value
IsNegativeInfinityAllowed
Gets or sets whether NegativeInfinity is accepted as a component value.
public bool IsNegativeInfinityAllowed { get; set; }
Property Value
- Boolean:
true
if NegativeInfinity is accepted as a component value; otherwise,false
. The default value isfalse
.
IsPositiveInfinityAllowed
Gets or sets whether PositiveInfinity is accepted as a component value.
public bool IsPositiveInfinityAllowed { get; set; }
Property Value
- Boolean:
true
if PositiveInfinity is accepted as a component value; otherwise,false
. The default value isfalse
.
LargeChange
Gets or sets the large change value.
public Rect LargeChange { get; set; }
Property Value
- Rect:
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.
RoundingDecimalPlace
Gets or sets the rounding decimal place.
public int? RoundingDecimalPlace { get; set; }
Property Value
SmallChange
Gets or sets the small change value.
public Rect SmallChange { get; set; }
Property Value
- Rect:
The small change value. The default value is
1
.
Methods
ApplyStandardValues(FrameworkElement)
Applies standard values to the specified target element.
protected override void ApplyStandardValues(FrameworkElement targetElement)
Parameter | Type | Description |
---|---|---|
targetElement | FrameworkElement | The target element. |
GetEditBoxType()
Gets the type of the associated PartEditBoxBase
-derived control.
protected override Type GetEditBoxType()
Returns
- Type:
The type of the associated
PartEditBoxBase
-derived control.
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
IsNaNAllowedProperty
Identifies the IsNaNAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsNaNAllowedProperty
IsNegativeInfinityAllowedProperty
Identifies the IsNegativeInfinityAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsNegativeInfinityAllowedProperty
IsPositiveInfinityAllowedProperty
Identifies the IsPositiveInfinityAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsPositiveInfinityAllowedProperty
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
RoundingDecimalPlaceProperty
Identifies the RoundingDecimalPlace dependency property. This field is read-only.
public static readonly DependencyProperty RoundingDecimalPlaceProperty
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.HasPopupProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsEditableProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.GenerateEditBox(Boolean, DataGridCell)
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.GenerateEditingElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.GenerateElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.CommitTriggers
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.HasPopup
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsEditable
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsNullAllowed
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.PlaceholderText
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.SpinnerVisibility
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.SpinWrapping
- DataGridPartEditBoxColumnBase<Nullable<Rect>>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, String)
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()