Class GridDateTimeEditStyleInfo
Provides a StyleInfoSubObjectBase object for date time 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 GridDateTimeEditStyleInfo : StyleInfoSubObjectBase, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridDateTimeEditStyleInfo()
Initializes a new empty GridDateTimeEditStyleInfo object.
Declaration
public GridDateTimeEditStyleInfo()
GridDateTimeEditStyleInfo(StyleInfoSubObjectIdentity)
Initalizes a new GridDateTimeEditStyleInfo object and associates it with an existing
Declaration
public GridDateTimeEditStyleInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridDateTimeEditStyleInfo(StyleInfoSubObjectIdentity, GridDateTimeEditStyleInfoStore)
Initalizes a new GridDateTimeEditStyleInfo object and associates it with an existing
Declaration
public GridDateTimeEditStyleInfo(StyleInfoSubObjectIdentity identity, GridDateTimeEditStyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridDateTimeEditStyleInfoStore | store | A GridDateTimeEditStyleInfoStore that holds data for this GridDateTimeEditStyleInfo. All changes in this style object will be saved in the GridDateTimeEditStyleInfoStore object. |
Properties
AutoCorrectedHighlightDuration
Gets or sets the auto corrected highlight duration.
Declaration
public double AutoCorrectedHighlightDuration { get; set; }
Property Value
Type |
---|
System.Double |
CanEdit
Declaration
public bool CanEdit { get; set; }
Property Value
Type |
---|
System.Boolean |
CorrectForeground
Gets or sets the correct foreground.
Declaration
public Brush CorrectForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Cursor
Gets or sets the cursor to display. The default value is null.
Declaration
public Cursor Cursor { get; set; }
Property Value
Type |
---|
System.Windows.Input.Cursor |
CustomPattern
Gets or sets the custom pattern.
Declaration
public string CustomPattern { get; set; }
Property Value
Type |
---|
System.String |
DateTimePattern
Gets or sets the DateTimePattern for the GridStyleInfo. Set the CurrentThread.CurrentCulture if you are specifying any other CultureInfo.
var dateTimeStyleInfo = this.grid.Model[6, 1];
dateTimeStyleInfo.CultureInfo = new CultureInfo("vi-VN");
dateTimeStyleInfo.DateTimeEdit.DateTimePattern = Syncfusion.Windows.Shared.DateTimePattern.RFC1123;
dateTimeStyleInfo.CellValue = DateTime.Now;
dateTimeStyleInfo.CellType = "DateTimeEdit";
Thread.CurrentThread.CurrentCulture = dateTimeStyleInfo.CultureInfo;
Declaration
public DateTimePattern DateTimePattern { get; set; }
Property Value
Type |
---|
DateTimePattern |
Default
Returns a default GridDateTimeEditStyleInfo to be used with a default style.
Declaration
public static GridDateTimeEditStyleInfo Default { get; }
Property Value
Type | Description |
---|---|
GridDateTimeEditStyleInfo | The default. |
Remarks
The Default of the GridStyleInfo class will return the validation info that this method generates through its overriden version of GetDefaultStyle().
HasAutoCorrectedHighlighDuration
Specifies whether the AutoCorrectedHighlightDuration property is initialized.
Declaration
public bool HasAutoCorrectedHighlighDuration { get; }
Property Value
Type |
---|
System.Boolean |
HasCorrectForeground
Specifies whether the CorrectForeground property is initialized.
Declaration
public bool HasCorrectForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasCursor
Specifies whether the Cursor property is initialized.
Declaration
public bool HasCursor { get; }
Property Value
Type |
---|
System.Boolean |
HasCustomPattern
Specifies whether the CustomPattern property is initialized.
Declaration
public bool HasCustomPattern { get; }
Property Value
Type |
---|
System.Boolean |
HasDateTimePattern
Specifies whether the DateTimePattern property is initialized.
Declaration
public bool HasDateTimePattern { get; }
Property Value
Type |
---|
System.Boolean |
HasIncorrectForeground
Specifies whether the IncorrectForeground property is initialized.
Declaration
public bool HasIncorrectForeground { get; }
Property Value
Type |
---|
System.Boolean |
HasIsAnimation
Specifies whether the IsAnimation property is initialized.
Declaration
public bool HasIsAnimation { get; }
Property Value
Type |
---|
System.Boolean |
HasIsAutoCorrect
Specifies whether the IsAutoCorrect property is initialized.
Declaration
public bool HasIsAutoCorrect { get; }
Property Value
Type |
---|
System.Boolean |
HasIsButtonPopUpEnabled
Specifies whether the IsButtonPopUpEnabled property is initialized.
Declaration
public bool HasIsButtonPopUpEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasIsCalendarEnabled
Specifies whether the IsCalendarEnabled property is initialized.
Declaration
public bool HasIsCalendarEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasIsEditable
Specifies whether the IsEditable property is initialized.
Declaration
public bool HasIsEditable { get; }
Property Value
Type |
---|
System.Boolean |
HasIsEmptyDateEnabled
Specifies whether the IsEmptyDateEnabled property is initialized.
Declaration
public bool HasIsEmptyDateEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasIsEnabledRepeatButton
Specifies whether the IsEnabledRepeatButton property is initialized.
Declaration
public bool HasIsEnabledRepeatButton { get; }
Property Value
Type |
---|
System.Boolean |
HasIsHoldMaxWidth
Specifies whether the IsHoldMaxWidth property is initialized.
Declaration
public bool HasIsHoldMaxWidth { get; }
Property Value
Type |
---|
System.Boolean |
HasIsPopupEnabled
Specifies whether the IsPopupEnabled property is initialized.
Declaration
public bool HasIsPopupEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasIsScrollingOnCircle
Specifies whether the IsScrollingOnCircle property is initialized.
Declaration
public bool HasIsScrollingOnCircle { get; }
Property Value
Type |
---|
System.Boolean |
HasIsVisibleRepeatButton
Specifies whether the IsVisibleRepeatButton property is initialized.
Declaration
public bool HasIsVisibleRepeatButton { get; }
Property Value
Type |
---|
System.Boolean |
HasIsWatchEnabled
Specifies whether the IsWatchEnabled property is initialized.
Declaration
public bool HasIsWatchEnabled { get; }
Property Value
Type |
---|
System.Boolean |
HasMaxDateTime
Specifies whether the MaxDateTime property is initialized.
Declaration
public bool HasMaxDateTime { get; }
Property Value
Type |
---|
System.Boolean |
HasMinDateTime
Specifies whether the MinDateTime property is initialized.
Declaration
public bool HasMinDateTime { get; }
Property Value
Type |
---|
System.Boolean |
HasNoneDateText
Specifies whether the NoneDateText property is initialized.
Declaration
public bool HasNoneDateText { get; }
Property Value
Type |
---|
System.Boolean |
HasPopupDelay
Specifies whether the PopupDelay property is initialized.
Declaration
public bool HasPopupDelay { get; }
Property Value
Type |
---|
System.Boolean |
HasRepeatButtonBackground
Specifies whether the RepeatButtonBackground property is initialized.
Declaration
public bool HasRepeatButtonBackground { get; }
Property Value
Type |
---|
System.Boolean |
HasRepeatButtonBorderBrush
Specifies whether the RepeatButtonBorderBrush property is initialized.
Declaration
public bool HasRepeatButtonBorderBrush { get; }
Property Value
Type |
---|
System.Boolean |
HasUncertainForeground
Specifies whether the UncertainForeground property is initialized.
Declaration
public bool HasUncertainForeground { get; }
Property Value
Type |
---|
System.Boolean |
IncorrectForeground
Gets or sets a brush for marking incorrect foreground.
Declaration
public Brush IncorrectForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
IsAnimation
Gets or sets a value indicating whether this instance is animation.
Declaration
public bool IsAnimation { get; set; }
Property Value
Type |
---|
System.Boolean |
IsAutoCorrect
Gets or sets a value indicating whether this instance is auto correct.
Declaration
public bool IsAutoCorrect { get; set; }
Property Value
Type |
---|
System.Boolean |
IsButtonPopUpEnabled
Gets or sets a value indicating whether this instance is button pop up enabled.
Declaration
public bool IsButtonPopUpEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsCalendarEnabled
Gets or sets a value indicating whether this instance is calendar enabled.
Declaration
public bool IsCalendarEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsEditable
Gets or sets a value indicating whether this instance is editable.
Declaration
public bool IsEditable { get; set; }
Property Value
Type |
---|
System.Boolean |
IsEmptyDateEnabled
Gets or sets a value indicating whether this instance is empty date enabled.
Declaration
public bool IsEmptyDateEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsEnabledRepeatButton
Gets or sets a value indicating whether this instance is enabled repeat button.
Declaration
public bool IsEnabledRepeatButton { get; set; }
Property Value
Type |
---|
System.Boolean |
IsHoldMaxWidth
Gets or sets a value indicating whether this instance is hold max width.
Declaration
public bool IsHoldMaxWidth { get; set; }
Property Value
Type |
---|
System.Boolean |
IsPopupEnabled
Gets or sets a value indicating whether this instance is popup enabled.
Declaration
public bool IsPopupEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsScrollingOnCircle
Gets or sets a value indicating whether this instance is scrolling on circle.
Declaration
public bool IsScrollingOnCircle { get; set; }
Property Value
Type |
---|
System.Boolean |
IsVisibleRepeatButton
Gets or sets a value indicating whether this instance is visible repeat button.
Declaration
public bool IsVisibleRepeatButton { get; set; }
Property Value
Type |
---|
System.Boolean |
IsWatchEnabled
Gets or sets a value indicating whether this instance is watch enabled.
Declaration
public bool IsWatchEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
MaxDateTime
Gets or sets the maximum value for this date time edit control.
Declaration
public DateTime MaxDateTime { get; set; }
Property Value
Type |
---|
System.DateTime |
MinDateTime
Gets or sets the minimum value for this date time edit control.
Declaration
public DateTime MinDateTime { get; set; }
Property Value
Type |
---|
System.DateTime |
NoneDateText
Gets or sets the none date text.
Declaration
public string NoneDateText { get; set; }
Property Value
Type |
---|
System.String |
PopupDelay
Gets or sets the popup delay.
Declaration
public TimeSpan PopupDelay { get; set; }
Property Value
Type |
---|
System.TimeSpan |
RepeatButtonBackground
Gets or sets the background color of the repeat buttons.
Declaration
public Brush RepeatButtonBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
RepeatButtonBorderBrush
Gets or sets the Border brush of the repeat buttons.
Declaration
public Brush RepeatButtonBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
UncertainForeground
Gets or sets the brush for uncertain foreground.
Declaration
public Brush UncertainForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Methods
GetDefaultStyle()
Returns Default.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | A GridDateTimeEditStyleInfo object with default values. |
Overrides
MakeCopy(StyleInfoBase, StyleInfoProperty)
Makes an exact copy of the current object.
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | newOwner | The new owner style object for the copied object. |
StyleInfoProperty | sip | The identifier for this object. |
Returns
Type | Description |
---|---|
IStyleInfoSubObject | The copy of the current object. |
Overrides
ResetAutoCorrectedHighlighDuration()
Resets the value of AutoCorrectedHighlighDuration property.
Declaration
public void ResetAutoCorrectedHighlighDuration()
ResetCorrectForeground()
Resets the value of CorrectForeground property.
Declaration
public void ResetCorrectForeground()
ResetCursor()
Resets the value of Cursor property.
Declaration
public void ResetCursor()
ResetCustomPattern()
Resets the value of CustomPattern property.
Declaration
public void ResetCustomPattern()
ResetDateTimePattern()
Resets the value of DateTimePattern property.
Declaration
public void ResetDateTimePattern()
ResetIncorrectForeground()
Resets the value of IncorrectForeground property.
Declaration
public void ResetIncorrectForeground()
ResetIsAnimation()
Resets the value of IsAnimation property.
Declaration
public void ResetIsAnimation()
ResetIsAutoCorrect()
Resets the value of IsAutoCorrect property.
Declaration
public void ResetIsAutoCorrect()
ResetIsButtonPopUpEnabled()
Resets the value of IsButtonPopUpEnabled property.
Declaration
public void ResetIsButtonPopUpEnabled()
ResetIsCalendarEnabled()
Resets the value of IsCalendarEnabled property.
Declaration
public void ResetIsCalendarEnabled()
ResetIsEditable()
Resets the value of IsEditable property.
Declaration
public void ResetIsEditable()
ResetIsEmptyDateEnabled()
Resets the value of IsEmptyDateEnabled property.
Declaration
public void ResetIsEmptyDateEnabled()
ResetIsEnabledRepeatButton()
Resets the value of IsEnabledRepeatButton property.
Declaration
public void ResetIsEnabledRepeatButton()
ResetIsHoldMaxWidth()
Resets the value of IsHoldMaxWidth property.
Declaration
public void ResetIsHoldMaxWidth()
ResetIsPopupEnabled()
Resets the value of IsPopupEnabled property.
Declaration
public void ResetIsPopupEnabled()
ResetIsScrollingOnCircle()
Resets the value of IsScrollingOnCircle property.
Declaration
public void ResetIsScrollingOnCircle()
ResetIsVisibleRepeatButton()
Resets the value of IsVisibleRepeatButton property.
Declaration
public void ResetIsVisibleRepeatButton()
ResetIsWatchEnabled()
Resets the value of IsWatchEnabled property.
Declaration
public void ResetIsWatchEnabled()
ResetMaxDate()
Resets the value of MaxDate property.
Declaration
public void ResetMaxDate()
ResetMinDate()
Resets the value of MinDate property.
Declaration
public void ResetMinDate()
ResetNoneDateText()
Resets the value of NoneDateText property.
Declaration
public void ResetNoneDateText()
ResetPopupDelay()
Resets the value of PopupDelay property.
Declaration
public void ResetPopupDelay()
ResetRepeatButtonBackground()
Resets the value of RepeatButtonBackground property.
Declaration
public void ResetRepeatButtonBackground()
ResetRepeatButtonBorderBrush()
Resets the value of RepeatButtonBorderBrush property.
Declaration
public void ResetRepeatButtonBorderBrush()
ResetUncertainForeground()
Resets the value of UncertainForeground property.
Declaration
public void ResetUncertainForeground()
ShouldSerializeAutoCorrectedHighlighDuration()
Specifies whether the AutoCorrectedHighlighDuration property is serializable.
Declaration
public bool ShouldSerializeAutoCorrectedHighlighDuration()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeCorrectForeground()
Specifies whether the CorrectForeground property is serializable.
Declaration
public bool ShouldSerializeCorrectForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeCursor()
Specifies whether the Cursor property is serializable.
Declaration
public bool ShouldSerializeCursor()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeCustomPattern()
Specifies whether the CustomPattern property is serializable.
Declaration
public bool ShouldSerializeCustomPattern()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeDateTimePattern()
Specifies whether the DateTimePattern property is serializable.
Declaration
public bool ShouldSerializeDateTimePattern()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIncorrectForeground()
Specifies whether the IncorrectForeground property is serializable.
Declaration
public bool ShouldSerializeIncorrectForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsAnimation()
Specifies whether the IsAnimation property is serializable.
Declaration
public bool ShouldSerializeIsAnimation()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsAutoCorrect()
Specifies whether the IsAutoCorrect property is serializable.
Declaration
public bool ShouldSerializeIsAutoCorrect()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsButtonPopUpEnabled()
Specifies whether the IsButtonPopUpEnabled property is serializable.
Declaration
public bool ShouldSerializeIsButtonPopUpEnabled()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsCalendarEnabled()
Specifies whether the IsCalendarEnabled property is serializable.
Declaration
public bool ShouldSerializeIsCalendarEnabled()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsEditable()
Specifies whether the IsEditable property is serializable.
Declaration
public bool ShouldSerializeIsEditable()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsEmptyDateEnabled()
Specifies whether the IsEmptyDateEnabled property is serializable.
Declaration
public bool ShouldSerializeIsEmptyDateEnabled()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsEnabledRepeatButton()
Specifies whether the IsEnabledRepeatButton property is serializable.
Declaration
public bool ShouldSerializeIsEnabledRepeatButton()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsHoldMaxWidth()
Specifies whether the IsHoldMaxWidth property is serializable.
Declaration
public bool ShouldSerializeIsHoldMaxWidth()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsPopupEnabled()
Specifies whether the IsPopUpEnabled property is serializable.
Declaration
public bool ShouldSerializeIsPopupEnabled()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsScrollingOnCircle()
Specifies whether the IsScrollingOnCircle property is serializable.
Declaration
public bool ShouldSerializeIsScrollingOnCircle()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsVisibleRepeatButton()
Specifies whether the IsVisibleRepeatButton property is serializable.
Declaration
public bool ShouldSerializeIsVisibleRepeatButton()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeIsWatchEnabled()
Specifies whether the IsWatchEnabled property is serializable.
Declaration
public bool ShouldSerializeIsWatchEnabled()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeMaxDate()
Specifies whether the MaxDate property is serializable.
Declaration
public bool ShouldSerializeMaxDate()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeMinDate()
Specifies whether the MinDate property is serializable.
Declaration
public bool ShouldSerializeMinDate()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeNoneDateText()
Specifies whether the NoneDateText property is serializable.
Declaration
public bool ShouldSerializeNoneDateText()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializePopupDelay()
Specifies whether the PopupDelay property is serializable.
Declaration
public bool ShouldSerializePopupDelay()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeRepeatButtonBackground()
Specifies whether the RepeatButtonBackground property is serializable.
Declaration
public bool ShouldSerializeRepeatButtonBackground()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeRepeatButtonBorderBrush()
Specifies whether the RepeatButtonBorderBrush property is serializable.
Declaration
public bool ShouldSerializeRepeatButtonBorderBrush()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |
ShouldSerializeUncertainForeground()
Specifies whether the UncertainForeground property is serializable.
Declaration
public bool ShouldSerializeUncertainForeground()
Returns
Type | Description |
---|---|
System.Boolean | True if it can be serialized. |