Type | Description | |||
FormatContents | A FormatContents object that holds a collection of FormatContent object. |
Here's a few samples on how to use the FormatContent objects:
FormatContents.Add("upper","upper(value)"), displays the column/row in upper-case, such as 'ROMANIA' instead 'Romania'
FormatContents.Add("longdate","longdate(date(value))" ), displays the object's content as date in long format, such as 'Monday, December 31, 2012'
FormatContents.Add("letter","'<b><fgcolor=808080>' + upper(value left 1) + '</fgcolor></b> ' + value" ), shows the first letter twice in bold and gray, such as 'R Romania' instead 'romania'
FormatContents.Add("proper","'<b>' + ((0:=proper(value)) left 1) + '</b>' + (=:0 mid 2)"), displays the first letter in bold and upper-case, and let the rest unchanged, such as 'Mihai Filimon' instead 'mihai filimon'.