Gets or sets the string used to format and display resource titles in row headers.
Namespace: MindFusion.Scheduling.WinForms
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public string RowTitleFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property RowTitleFormat As String |
A string specifying the display format. Assign null (Nothing in Visual Basic) to this property to use the corresponding value from the current theme.
The RowTitleFormat represents raw text containing property references enclosed in curly brackets. The following is an example of a formatting string containing a single reference to a property called Name:
Example Copy Code |
---|
This is {Name}. |
The value of the referenced property is obtained from the resource object associated with the row whose title is being formatted with this string.
More complicated format strings can be specified. For example, assuming that the view is grouped by contacts, the following format specifies that the first, middle and last name of the contact should be displayed (in that order):
Example Copy Code |
---|
{FirstName} {MiddleName} {LastName} |
The property references can contain additional formatting specifiers indicating how the value of the referenced property should be formatted. The additional formatting specifiers are separated from the property name with colon ':'. The following is an example of how to format the value of a DateTime property:
Example Copy Code |
---|
{ActualStart:dd, MMM} |
The above example will display the value of the ActualStart property with the specified formatting.