commit | author | age
|
2207d6
|
1 |
# PHPExcel Developer Documentation |
W |
2 |
|
|
3 |
## Credits |
|
4 |
|
|
5 |
Please refer to the internet page [http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home][22] for up-to-date credits. |
|
6 |
|
|
7 |
## Valid array keys for style applyFromArray() |
|
8 |
|
|
9 |
The following table lists the valid array keys for PHPExcel_Style applyFromArray() classes. If the "Maps to property" column maps a key to a setter, the value provided for that key will be applied directly. If the "Maps to property" column maps a key to a getter, the value provided for that key will be applied as another style array. |
|
10 |
|
|
11 |
__PHPExcel_Style__ |
|
12 |
|
|
13 |
Array key | Maps to property |
|
14 |
-------------|------------------- |
|
15 |
fill | getFill() |
|
16 |
font | getFont() |
|
17 |
borders | getBorders() |
|
18 |
alignment | getAlignment() |
|
19 |
numberformat | getNumberFormat() |
|
20 |
protection | getProtection() |
|
21 |
|
|
22 |
|
|
23 |
__PHPExcel_Style_Fill__ |
|
24 |
|
|
25 |
Array key | Maps to property |
|
26 |
-----------|------------------- |
|
27 |
type | setFillType() |
|
28 |
rotation | setRotation() |
|
29 |
startcolor | getStartColor() |
|
30 |
endcolor | getEndColor() |
|
31 |
color | getStartColor() |
|
32 |
|
|
33 |
|
|
34 |
__PHPExcel_Style_Font__ |
|
35 |
|
|
36 |
Array key | Maps to property |
|
37 |
------------|------------------- |
|
38 |
name | setName() |
|
39 |
bold | setBold() |
|
40 |
italic | setItalic() |
|
41 |
underline | setUnderline() |
|
42 |
strike | setStrikethrough() |
|
43 |
color | getColor() |
|
44 |
size | setSize() |
|
45 |
superScript | setSuperScript() |
|
46 |
subScript | setSubScript() |
|
47 |
|
|
48 |
|
|
49 |
__PHPExcel_Style_Borders__ |
|
50 |
|
|
51 |
Array key | Maps to property |
|
52 |
------------------|------------------- |
|
53 |
allborders | getLeft(); getRight(); getTop(); getBottom() |
|
54 |
left | getLeft() |
|
55 |
right | getRight() |
|
56 |
top | getTop() |
|
57 |
bottom | getBottom() |
|
58 |
diagonal | getDiagonal() |
|
59 |
vertical | getVertical() |
|
60 |
horizontal | getHorizontal() |
|
61 |
diagonaldirection | setDiagonalDirection() |
|
62 |
outline | setOutline() |
|
63 |
|
|
64 |
|
|
65 |
__PHPExcel_Style_Border__ |
|
66 |
|
|
67 |
Array key | Maps to property |
|
68 |
----------|------------------- |
|
69 |
style | setBorderStyle() |
|
70 |
color | getColor() |
|
71 |
|
|
72 |
|
|
73 |
__PHPExcel_Style_Alignment__ |
|
74 |
|
|
75 |
Array key | Maps to property |
|
76 |
------------|------------------- |
|
77 |
horizontal | setHorizontal() |
|
78 |
vertical | setVertical() |
|
79 |
rotation | setTextRotation() |
|
80 |
wrap | setWrapText() |
|
81 |
shrinkToFit | setShrinkToFit() |
|
82 |
indent | setIndent() |
|
83 |
|
|
84 |
|
|
85 |
__PHPExcel_Style_NumberFormat__ |
|
86 |
|
|
87 |
Array key | Maps to property |
|
88 |
----------|------------------- |
|
89 |
code | setFormatCode() |
|
90 |
|
|
91 |
|
|
92 |
__PHPExcel_Style_Protection__ |
|
93 |
|
|
94 |
Array key | Maps to property |
|
95 |
----------|------------------- |
|
96 |
locked | setLocked() |
|
97 |
hidden | setHidden() |
|
98 |
|
|
99 |
|
|
100 |
[22]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home |