Class GridUpDownEditStyleInfo
Provides a StyleInfoSubObjectBase object for updown edit control properties in a cell.
Each property in this sub object can be configured individually. Properties that have not been initialized will inherit default values from a base style.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridUpDownEditStyleInfo : StyleInfoSubObjectBase, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridUpDownEditStyleInfo()
Initializes a new empty GridUpDownEditStyleInfo object.
Declaration
public GridUpDownEditStyleInfo()
GridUpDownEditStyleInfo(StyleInfoSubObjectIdentity)
Initalizes a new GridUpDownEditStyleInfo object and associates it with an existing
Declaration
public GridUpDownEditStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridUpDownEditStyleInfo(StyleInfoSubObjectIdentity, GridUpDownEditStyleInfoStore)
Initalizes a new GridUpDownEditStyleInfo object and associates it with an existing
Declaration
public GridUpDownEditStyleInfo(StyleInfoSubObjectIdentity identity, GridUpDownEditStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridUpDownEditStyleInfoStore | store | A GridUpDownEditStyleInfoStore that holds data for this GridUpDownEditStyleInfo. All changes in this style object will be saved in the GridUpDownEditStyleInfoStore object. |
Properties
AnimationSpeed
Gets or sets the animation speed of value change.
Declaration
public double AnimationSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0.1. |
See Also
Default
Returns a default GridUpDownEditStyleInfo to be used with a default style.
Declaration
public static GridUpDownEditStyleInfo Default { get; }
Property Value
Type | Description |
---|---|
GridUpDownEditStyleInfo | The default. |
Remarks
The Default of the GridStyleInfo class will return the validation info that this method generates through its overriden version of GetDefaultStyle().
FocusedBackground
Gets or sets the background when control is focused.
Declaration
public Brush FocusedBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush Default value is Brushes.White. |
See Also
FocusedBorderBrush
Gets or sets the borderBrush when control is focused.
Declaration
public Brush FocusedBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush Default value is Brushes.Black. |
See Also
FocusedForeground
Gets or sets the foreground when control is focused.
Declaration
public Brush FocusedForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush Default value is Brushes.Black. |
See Also
HasAnimationSpeed
Determines whether AnimationSpeed is initialized for current object.
Declaration
public bool HasAnimationSpeed { get; }
Property Value
Type |
---|
System.Boolean |
HasFocusedBackground
Determines whether FocusedBackground is initialized for current object.
Declaration
public bool HasFocusedBackground { get; }
Property Value
Type |
---|
System.Boolean |
HasFocusedBorderBrush
Determines whether FocusedBorderBrush is initialized for current object.
Declaration
public bool HasFocusedBorderBrush { get; }
Property Value
Type |
---|
System.Boolean |
HasFocusedForeground
Determines whether FocusedForeground is initialized for current object.
Declaration
public bool HasFocusedForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasMaxValue
Determines whether MaxValue is initialized for current object.
Declaration
public bool HasMaxValue { get; }
Property Value
Type |
---|
System.Boolean |
HasMinValue
Determines whether MinValue is initialized for current object.
Declaration
public bool HasMinValue { get; }
Property Value
Type |
---|
System.Boolean |
HasNegativeForeground
Determines whether NegativeForeground is initialized for current object.
Declaration
public bool HasNegativeForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasStep
Determines whether Step is initialized for current object.
Declaration
public bool HasStep { get; }
Property Value
Type |
---|
System.Boolean |
MaxValue
Gets or sets the maximum value for the control.
Declaration
public double MaxValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is double.MaxValue. |
See Also
MinValue
Gets or sets the minimum value for the control.
Declaration
public double MinValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is double.MinValue. |
See Also
NegativeForeground
Gets or sets background of the control when it's value is negative.
Declaration
public Brush NegativeForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush |
Step
Gets or sets the step to increment or decrement the value of the control when the up or down button is clicked.
Declaration
public double Step { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 1. |
See Also
Methods
GetDefaultStyle()
Returns Default.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | A GridUpDownEditStyleInfo object with default values. |
Overrides
ResetAnimationSpeed()
Resets AnimationSpeed.
Declaration
public void ResetAnimationSpeed()
ResetFocusedBackground()
Resets FocusedBackground.
Declaration
public void ResetFocusedBackground()
ResetFocusedBorderBrush()
Resets FocusedBorderBrush.
Declaration
public void ResetFocusedBorderBrush()
ResetFocusedForeground()
Resets FocusedForeground.
Declaration
public void ResetFocusedForeground()
ResetMaxValue()
Resets MaxValue.
Declaration
public void ResetMaxValue()
ResetMinValue()
Resets MinValue.
Declaration
public void ResetMinValue()
ResetNegativeForeground()
Resets NegativeForeground.
Declaration
public void ResetNegativeForeground()
ResetStep()
Resets Step.
Declaration
public void ResetStep()
ShouldSerializeAnimationSpeed()
Determines whether AnimationSpeed is serializable.
Declaration
public bool ShouldSerializeAnimationSpeed()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeFocusedBackground()
Determines whether FocusedBackground is serializable.
Declaration
public bool ShouldSerializeFocusedBackground()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeFocusedBorderBrush()
Determines whether FocusedBorderBrush is serializable.
Declaration
public bool ShouldSerializeFocusedBorderBrush()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeFocusedForeground()
Determines whether FocusedForeground is serializable.
Declaration
public bool ShouldSerializeFocusedForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeMaxValue()
Determines whether MaxValue is serializable.
Declaration
public bool ShouldSerializeMaxValue()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeMinValue()
Determines whether MinValue is serializable.
Declaration
public bool ShouldSerializeMinValue()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeNegativeForeground()
Determines whether NegativeForeground is serializable.
Declaration
public bool ShouldSerializeNegativeForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |
ShouldSerializeStep()
Determines whether Step is serializable.
Declaration
public bool ShouldSerializeStep()
Returns
Type | Description |
---|---|
System.Boolean | True if it is serializable. |