Difference between revisions of "Tabulation getDefaultDiagramStyle"
Cg huyphong (talk | contribs) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | + | ===== Tabulation_getDefaultDiagramStyle ===== | |
− | + | Gets a default chart style object that can then be used for setting styles for entire charts. The default settings are derived from the systems set default style sheet. Since this is defined when setting up the system, these help files cannot tell you what the actual default values for your site willl be. As you will see, this object will include both the default fill style and font style objects for a chart, that can also be extracted individually using the functions [[DiagramFillStyle getDefault|DiagramFillStyle_getDefault]] and [[DiagramFontStyle getDefault|DiagramFontStyle_getDefault]]. | |
− | + | '''Syntax''' | |
− | '' | + | Tabulation_getDefaultDiagramStyle(''number'') |
− | + | or can use [[TabulationDiagramStyle_class|new TabulationDiagramStyle();]] | |
− | + | '''Arguments''' | |
− | + | ''number'': enumeration for diagram type. | |
− | + | Currently, only one diagram type is supported, table diagram (diagram type = 1). | |
− | + | More diagram type will be supported in the future. | |
− | {| | + | '''Return type''' |
+ | |||
+ | Returns the following array | ||
+ | |||
+ | {| cellpadding="2" border="1" width="907" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);" class="tableintopic" | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | | + | | bgcolor="#f59d56" width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | Constant | + | Constant |
− | | | + | |
− | Type | + | | bgcolor="#f59d56" width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | | + | Type |
− | Initial/Default value | + | |
− | | | + | | bgcolor="#f59d56" width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Description | + | Initial/Default value |
+ | |||
+ | | bgcolor="#f59d56" width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Description | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | OBJECT_TYPE | + | OBJECT_TYPE |
− | | style="border: 1px solid | + | |
− | Number | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | Number |
− | 21 | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Enumeration defining the object type. | + | 21 |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Enumeration defining the object type. | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | TABLE_DIAGRAM_STYLE_FILL | + | TABLE_DIAGRAM_STYLE_FILL |
− | | style="border: 1px solid | + | |
− | Array | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | Array |
− | Default extracted from system's default style sheet. | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Fill style. Background color. | + | Default extracted from system's default style sheet. |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Fill style. Background color. | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | TABLE_DIAGRAM_STYLE_DECIMAL | + | TABLE_DIAGRAM_STYLE_DECIMAL |
− | | style="border: 1px solid | + | |
− | Number | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | Number |
− | Default extracted from system's default style sheet. | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Decimal place. | + | Default extracted from system's default style sheet. |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Decimal place. | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | TABLE_DIAGRAM_STYLE_FONT | + | TABLE_DIAGRAM_STYLE_FONT |
− | | style="border: 1px solid | + | |
− | Array | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | Array |
− | Default extracted from system's default style sheet. | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Font. | + | Default extracted from system's default style sheet. |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Font. | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | TABLE_DIAGRAM_STYLE_VALIGN | + | TABLE_DIAGRAM_STYLE_VALIGN |
− | | style="border: 1px solid | + | |
− | String | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | String |
− | Default extracted from system's default style sheet. | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Vertical alignment (allows values "top", "center", or "bottom"). | + | Default extracted from system's default style sheet. |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Vertical alignment (allows values "top", "center", or "bottom"). | ||
+ | |||
|- align="left" valign="top" | |- align="left" valign="top" | ||
− | | style="border: 1px solid | + | | width="227" style="border: 1px solid rgb(1, 1, 1);" | |
− | TABLE_DIAGRAM_STYLE_HALIGN | + | TABLE_DIAGRAM_STYLE_HALIGN |
− | | style="border: 1px solid | + | |
− | String | + | | width="73" style="border: 1px solid rgb(1, 1, 1);" | |
− | | style="border: 1px solid | + | String |
− | Default extracted from system's default style sheet. | + | |
− | | style="border: 1px solid | + | | width="174" style="border: 1px solid rgb(1, 1, 1);" | |
− | Horizontal alignment (allows values "left", "center", or "right"). | + | Default extracted from system's default style sheet. |
+ | |||
+ | | width="433" style="border: 1px solid rgb(1, 1, 1);" | | ||
+ | Horizontal alignment (allows values "left", "center", or "right"). | ||
+ | |||
+ | |} | ||
+ | |||
+ | '''Examples''' | ||
+ | |||
+ | ''array tablediagram = Tabulation_getDefaultDiagramStyle(1); '' | ||
+ | |||
+ | ''print(tablediagram);'' | ||
+ | |||
+ | ''//Result: (e.g: {21,{19,{17,255,255,255},2,False},1,{18,Arial,10,{17,255,255,255},False,False,False,False},Center,Left})'' | ||
+ | |||
+ | '''Availability''' | ||
− | + | Version 5.8.1 __NOTOC__ <!-- imported from file: 8100.htm--> | |
− | |||
− | |||
− | + | [[Category:Style_setting_functions]] | |
− | |||
− |
Latest revision as of 07:58, 22 September 2023
Tabulation_getDefaultDiagramStyle
Gets a default chart style object that can then be used for setting styles for entire charts. The default settings are derived from the systems set default style sheet. Since this is defined when setting up the system, these help files cannot tell you what the actual default values for your site willl be. As you will see, this object will include both the default fill style and font style objects for a chart, that can also be extracted individually using the functions DiagramFillStyle_getDefault and DiagramFontStyle_getDefault.
Syntax
Tabulation_getDefaultDiagramStyle(number)
or can use new TabulationDiagramStyle();
Arguments
number: enumeration for diagram type.
Currently, only one diagram type is supported, table diagram (diagram type = 1).
More diagram type will be supported in the future.
Return type
Returns the following array
Constant |
Type |
Initial/Default value |
Description |
OBJECT_TYPE |
Number |
21 |
Enumeration defining the object type. |
TABLE_DIAGRAM_STYLE_FILL |
Array |
Default extracted from system's default style sheet. |
Fill style. Background color. |
TABLE_DIAGRAM_STYLE_DECIMAL |
Number |
Default extracted from system's default style sheet. |
Decimal place. |
TABLE_DIAGRAM_STYLE_FONT |
Array |
Default extracted from system's default style sheet. |
Font. |
TABLE_DIAGRAM_STYLE_VALIGN |
String |
Default extracted from system's default style sheet. |
Vertical alignment (allows values "top", "center", or "bottom"). |
TABLE_DIAGRAM_STYLE_HALIGN |
String |
Default extracted from system's default style sheet. |
Horizontal alignment (allows values "left", "center", or "right"). |
Examples
array tablediagram = Tabulation_getDefaultDiagramStyle(1);
print(tablediagram);
//Result: (e.g: {21,{19,{17,255,255,255},2,False},1,{18,Arial,10,{17,255,255,255},False,False,False,False},Center,Left})
Availability
Version 5.8.1