TabulationFillStyle class: Difference between revisions
From Catglobe Wiki
More actions
Created page with "{{CGscriptClass_Template |Name=<nowiki>TabulationFillStyle</nowiki> |Description=<nowiki>Styles for use on a portion of text</nowiki> |InheritsFrom=object|Constructors= {{CGsc..." Â |
No edit summary  |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
|Name=<nowiki>TabulationFillStyle</nowiki> | |Name=<nowiki>TabulationFillStyle</nowiki> | ||
|Description=<nowiki>Styles for use on a portion of text</nowiki> | |Description=<nowiki>Styles for use on a portion of text</nowiki> | ||
|InheritsFrom= | |InheritsFrom=Array|Constructors= | ||
{{CGscriptConstructors_Template|Description=<nowiki>Create a new TabulationFillStyle</nowiki>}} | {{CGscriptConstructors_Template|Description=<nowiki>Create a new TabulationFillStyle</nowiki>}} | ||
{{CGscriptConstructors_Template|Parameters= | {{CGscriptConstructors_Template|Parameters= | ||
| Line 9: | Line 9: | ||
|Methods= | |Methods= | ||
{{CGscriptMethods_Template|ReturnType=TabulationFillStyle|Name=<nowiki>Clone</nowiki>|Description=<nowiki>Deep copy TabulationFillStyle object</nowiki>}} | {{CGscriptMethods_Template|ReturnType=TabulationFillStyle|Name=<nowiki>Clone</nowiki>|Description=<nowiki>Deep copy TabulationFillStyle object</nowiki>}} | ||
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki> | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} | ||
{{CGscriptMethods_Template|ReturnType=object|Name=<nowiki>this[] { get; }</nowiki>|Parameters= | |||
{{CGscriptParameters_Template|Type=int|Name=<nowiki>index</nowiki>|Description=<nowiki>Index</nowiki>}} | |||
|Description=<nowiki>Backward-compatible indexer</nowiki>}} | |||
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>this[] { get; }</nowiki>|Parameters= | |||
{{CGscriptParameters_Template|Type=int|Name=<nowiki>index</nowiki>|Description=<nowiki>Index</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=object|Name=<nowiki>value</nowiki>|Description=<nowiki>Value to set</nowiki>}} | |||
|Description=<nowiki>Backward-compatible indexer</nowiki>}} | |||
|Properties= | |Properties= | ||
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Average</nowiki>|HasGetter=1|Description=<nowiki>Average of the objects in the Array object. Can only use if all the elements are of type Number</nowiki>}} | |||
{{CGscriptProperties_Template|ReturnType=Color|Name=<nowiki>Color</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Background color</nowiki>}} | {{CGscriptProperties_Template|ReturnType=Color|Name=<nowiki>Color</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Background color</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>FillType</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Fill type. Enumeration. Constant: Diagram_Fill_Style_xxx</nowiki>}} | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>FillType</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Fill type. Enumeration. Constant: Diagram_Fill_Style_xxx</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Inherit</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Specifies whether the font style will be inherited from the style sheet (when True) or gotten from the system's default (when False).</nowiki>}} | {{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Inherit</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Specifies whether the font style will be inherited from the style sheet (when True) or gotten from the system's default (when False).</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Max</nowiki>|HasGetter=1|Description=<nowiki>Largest of all the objects in the Array object. Can only use if all the elements are of type Number</nowiki>}} | |||
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Min</nowiki>|HasGetter=1|Description=<nowiki>Smallest of all the objects in the Array object. Can only use if all the elements are of type Number</nowiki>}} | |||
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType= | {{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Sum</nowiki>|HasGetter=1|Description=<nowiki>Sum of all the objects in the Array object. Can only use if all the elements are of type Number</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} | |||
|StaticMethods= | |||
{{CGscriptMethods_Template|ReturnType=TabulationFillStyle|Name=<nowiki>TabulationFillStyle_getDefault</nowiki>|Description=<nowiki>Create a default fill style object</nowiki>}} | |||
}} | }} | ||
=== <span style="color:#DF8621">'''Examples'''</span> === | |||
<source lang="javascript"> | |||
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle still keep using from styleSheet) ***// | |||
//** Use SetTableDiagramStyle ***// | |||
TabulationDiagramParameter p = new TabulationDiagramParameter(); | |||
p.DataCacheId = 17116726; | |||
TabulationFillStyle fillStyle = new TabulationFillStyle();Â | |||
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | |||
//TabulationFillStyle fillStyle = diagramStyle.Fill; | |||
fillStyle.Color = new Color ("yellow", false); | |||
p.SetTableDiagramStyle(TableDiagram_ColumnHeaderLevel2, TABLE_DIAGRAM_STYLE_FILL, fillStyle); | |||
Tabulation t = new Tabulation (); | |||
t.StyleSheet = new ReportStyleSheet(11060624); | |||
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p); | |||
</source> | |||
[[File:2022-05-12_11-34-56.jpg]] | |||
<br> | |||
<br> | |||
<source lang="javascript"> | |||
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle if not set will using from default) ***// | |||
//** Use SetDiagramStyle***// | |||
TabulationDiagramParameter p = new TabulationDiagramParameter(); | |||
p.DataCacheId = 17116726; | |||
TabulationFillStyle fillStyle = new TabulationFillStyle();Â | |||
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | |||
diagramStyle.Fill.Color = new Color ("yellow", false); | |||
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle); | |||
Tabulation t = new Tabulation (); | |||
t.StyleSheet = new ReportStyleSheet(11060624); | |||
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p); | |||
</source> | |||
[[File:2022-05-12_11-35-31.jpg]] | |||
Latest revision as of 10:32, 28 May 2026
TabulationFillStyle
Styles for use on a portion of text
Parent class
Inherits from Array
Constructors
- () - Create a new TabulationFillStyle
- (bool isDefault "load default fill style") - Create a default TabulationFillStyle
Methods
- TabulationFillStyle Clone() - Deep copy TabulationFillStyle object
- string ToString() - The string representation of the object.
- object this[] { get; }(int index "Index") - Backward-compatible indexer
- Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer
Properties
- number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
- Color Color { get; set; } - Background color
- int FillType { get; set; } - Fill type. Enumeration. Constant: Diagram_Fill_Style_xxx
- bool Inherit { get; set; } - Specifies whether the font style will be inherited from the style sheet (when True) or gotten from the system's default (when False).
- number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
- number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
- string ObjectTypeName { get; } - The name of the type of object.
- number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
- TypeInformation TypeInformation { get; } - Get information about this class.
Static Methods
- TabulationFillStyle TabulationFillStyle_getDefault() - Create a default fill style object
Examples
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle still keep using from styleSheet) ***//
//** Use SetTableDiagramStyle ***//
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle();
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
//TabulationFillStyle fillStyle = diagramStyle.Fill;
fillStyle.Color = new Color ("yellow", false);
p.SetTableDiagramStyle(TableDiagram_ColumnHeaderLevel2, TABLE_DIAGRAM_STYLE_FILL, fillStyle);
Tabulation t = new Tabulation ();
t.StyleSheet = new ReportStyleSheet(11060624);
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle if not set will using from default) ***//
//** Use SetDiagramStyle***//
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle();
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
diagramStyle.Fill.Color = new Color ("yellow", false);
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle);
Tabulation t = new Tabulation ();
t.StyleSheet = new ReportStyleSheet(11060624);
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);

