Toggle menu
913
3.8K
30.2K
279.2K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

TabulationFillStyle class: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
(3 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=object|Constructors=
|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>|Inherited=object|Description=<nowiki>The string representation of the object.</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=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
{{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> ===
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
<source lang="javascript">


//*** Set ColumnHeaderLevel2 fillStyle color to red (other diagramStyle still keep using from styleSheet) ***//
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle still keep using from styleSheet) ***//
//** Use SetTableDiagramStyle ***//


TabulationDiagramParameter p = new TabulationDiagramParameter();
TabulationDiagramParameter p = new TabulationDiagramParameter();
Line 27: Line 41:
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
//TabulationFillStyle fillStyle = diagramStyle.Fill;
//TabulationFillStyle fillStyle = diagramStyle.Fill;
fillStyle.Color = new Color ("red", false);
fillStyle.Color = new Color ("yellow", false);
p.SetTableDiagramStyle(TableDiagram_ColumnHeaderLevel2,  TABLE_DIAGRAM_STYLE_FILL, fillStyle);
p.SetTableDiagramStyle(TableDiagram_ColumnHeaderLevel2,  TABLE_DIAGRAM_STYLE_FILL, fillStyle);
Tabulation t = new Tabulation ();
Tabulation t = new Tabulation ();
Line 34: Line 48:


</source>
</source>
[[File:2022-05-12_9-54-58.jpg]]
[[File:2022-05-12_11-34-56.jpg]]
<br>
<br>
<source lang="javascript">
<source lang="javascript">


//*** Set ColumnHeaderLevel2 fillStyle color to red (other diagramStyle using from default)***//
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle if not set will using from default) ***//
//** Use SetDiagramStyle***//


TabulationDiagramParameter p = new TabulationDiagramParameter();
TabulationDiagramParameter p = new TabulationDiagramParameter();
Line 43: Line 60:
TabulationFillStyle fillStyle = new TabulationFillStyle();   
TabulationFillStyle fillStyle = new TabulationFillStyle();   
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
diagramStyle.Fill.Color = new Color ("red", false);
diagramStyle.Fill.Color = new Color ("yellow", false);
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle);
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle);
Tabulation t = new Tabulation ();
Tabulation t = new Tabulation ();
Line 49: Line 66:
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);
</source>
</source>
[[File:2022-05-12_9-51-28.jpg]]
[[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

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);