Welcome to The Carlisle Group's Knowledge Base.
This is a keyword search that looks for matching articles that contain one or more words specifically by a user in articles’ tags, title and content. Admin writes brief intro content here via admin end. If you are unable to find an answer to your issue, please submit an issue here.
The ExcelFile.SetRangeFontFormat takes two arguments. The first is a CharString object instance with the range that formatting will be applied. The second is a CharString instance of comma separated name-value property pairs.
Available options as of CAS 6.0.381
Property | Value | Description | Link |
Background | {Integer} | Bakground color index | MSDN Link |
Bold | True False | ||
ColorIndex | Hex String | Font hex color code | |
Italic | True False | ||
Name | {Character String} | Font name | |
Size | {Integer} | ||
Strikethrough | True False | ||
Subscript | True False | ||
Underline | True False | ||
VerticalAlignment | xlBottom xlCenter xlDistributed xlJustify xltop | MSDN Link | |
HorizontalAlignment | xlCenter xlDistributed xlJustify xlLeft xlRight | MSDN Link | |
BackgroundColor | Hex String | Background hex color code |
Example:
CS ← CharString.New 'Text to format' XL ← ExcelFile.New '' RANGE ← XL.Put 'C5' CS FMT ← CharString.New 'Background=3,Bold=True,Italic=True,Name=Arial Black,Size=20,ColorIndex=10' XL.SetRangeFontFormat RANGE FMT XL.MakeVisible 1