<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης">
Τεκμηρίωση HotXLS
<κλάση nav="doc-links">
Περιεχόμενα
Αρχική
Επισκόπηση
TGridToXLS
IXLSWorkbook
<κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts">
Αρχική
Περιεχόμενα
Επισκόπηση
ColorIndex ιδιότητα
<κλάση div="indent">
<κλάση div="txt">
Επιστρέφει or sets the color of the interior. The color is specified as an index value into the current color palette, or as one of the XlColorIndex constants. Read/write LongWord
Σύνταξη
<κλάση div="indent">
<κλάση div="txt">
property ColorIndex: LongWord;
Περιγραφή
<κλάση div="indent">
<κλάση div="txt">
ColorIndex can be one of these XlColorIndex constants
<κλάση table="constlist">
<κλάση td="consti">xlColorIndexAutomatic
<κλάση td="constd">Use to specify the automatic fill
<κλάση td="consti">xlColorIndexNone
<κλάση td="constd">Use to specify no interior fill
The following illustration shows the color-index values in the default color palette
Παράδειγμα
<κλάση div="indent">
<κλάση div="txt">
This example sets the color of the range A1:C10 interior to red
<κλάση pre="code">
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.ColorIndex := 3;
<κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software