Version

FormatInfo Property

Returns the TimeSpanFormatInfo instance associated with this control.
Syntax
'Declaration
 
Public ReadOnly Property FormatInfo As Infragistics.Win.TimeSpanFormatInfo
public Infragistics.Win.TimeSpanFormatInfo FormatInfo {get;}
Remarks

The TimeSpanFormatInfo class provides a way for the developer to define the string tokens that the editor uses to identify the units of time, i.e., weeks, days, hours, and minutes. By default, the values used are shorthand representations for the English (United States) culture.

The TimeSpanFormatInfo class also provides a way for the developer to define the number of logical days considered to be in one week. By default, the value is the actual number of days in one week (seven). An application might want to consider a week to represent a work week, in which case the DaysPerWeek property would be set to 'Five'. This will cause the control to parse values expressed as weeks as the numerical value multiplied by five (instead of seven), resulting in a displayed value of (for example) "2 wks", with an underlying actual value that spans 10 days.

Settings made on the instance returned from this property are also applied to the editor it provides to embeddable editor consumers.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also