Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

TabulationDiagramStyle class: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
|Name=<nowiki>TabulationDiagramStyle</nowiki>
|Name=<nowiki>TabulationDiagramStyle</nowiki>
|Description=<nowiki>Represents a diagram style.</nowiki>
|Description=<nowiki>Represents a diagram style.</nowiki>
|InheritsFrom=object|Constructors=
|InheritsFrom=Array|Constructors=
{{CGscriptConstructors_Template|Description=<nowiki>Create a default TabulationDiagramStyle</nowiki>}}
{{CGscriptConstructors_Template|Description=<nowiki>Create a default TabulationDiagramStyle</nowiki>}}
|Methods=
|Methods=
{{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=int|Name=<nowiki>Decimal</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Decimal place.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>Decimal</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Decimal place.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TabulationFillStyle|Name=<nowiki>Fill</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Fill style from TabulationFillStyle object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TabulationFillStyle|Name=<nowiki>Fill</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Fill style from TabulationFillStyle object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Halign</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Horizontal alignment (allows values  Center, Left, Right).</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Halign</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Horizontal alignment (allows values  Center, Left, Right).</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=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=TabulationTextStyle|Name=<nowiki>Text</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Font style from TabulationTextStyle object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TabulationTextStyle|Name=<nowiki>Text</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Font style from TabulationTextStyle 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=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Valign</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Vertical alignment (allows values  Center, Top, Bottom).</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Valign</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Vertical alignment (allows values  Center, Top, Bottom).</nowiki>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
//Default value
TabulationDiagramStyle style = new TabulationDiagramStyle();
print(style.Fill.Color.HtmlRgbHex);//#ffffff white
print(style.Fill.FillType);//2: Diagram_Fill_Style_SolidFill
print(style.Fill.Inherit);//false
print(style.Decimal);//1
print(style.Text.FontFace);//Arial
print(style.Text.FontSize);//10
print(style.Text.Color.HtmlRgbHex);//#000000 black
print(style.Text.Bold);//False
print(style.Text.Italic);//False
print(style.Text.Underline);//False
print(style.Text.IsInherit);//False
print(style.Valign);//Center
print(style.Halign) ;//Left
</source>
<source lang="javascript">
<source lang="javascript">
//*** Set fillStyle, textStyle, Valign, Halign, border for ColumnHeaderLevel2 ***//
//*** Set fillStyle, textStyle, Valign, Halign, border for ColumnHeaderLevel2 ***//

Latest revision as of 10:35, 28 May 2026

TabulationDiagramStyle


Represents a diagram style.

Parent class

Inherits from Array

Constructors

  • () - Create a default TabulationDiagramStyle

Methods

  • 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
  • int Decimal { get; set; } - Decimal place.
  • TabulationFillStyle Fill { get; set; } - Fill style from TabulationFillStyle object.
  • string Halign { get; set; } - Horizontal alignment (allows values Center, Left, Right).
  • 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
  • TabulationTextStyle Text { get; set; } - Font style from TabulationTextStyle object.
  • TypeInformation TypeInformation { get; } - Get information about this class.
  • string Valign { get; set; } - Vertical alignment (allows values Center, Top, Bottom).

Examples

//Default value
TabulationDiagramStyle style = new TabulationDiagramStyle();
print(style.Fill.Color.HtmlRgbHex);//#ffffff white
print(style.Fill.FillType);//2: Diagram_Fill_Style_SolidFill
print(style.Fill.Inherit);//false
print(style.Decimal);//1
print(style.Text.FontFace);//Arial
print(style.Text.FontSize);//10
print(style.Text.Color.HtmlRgbHex);//#000000 black
print(style.Text.Bold);//False
print(style.Text.Italic);//False
print(style.Text.Underline);//False
print(style.Text.IsInherit);//False
print(style.Valign);//Center
print(style.Halign) ;//Left
//*** Set fillStyle, textStyle, Valign, Halign, border for ColumnHeaderLevel2 ***//
//*** Set decimal 2 for AbsoluteColumn***//

TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
diagramStyle.Fill.Color = new Color ("yellow", false);
diagramStyle.Text.Color = new Color ("red", false);
diagramStyle.Text.FontFace = "Comic Sans MS";
diagramStyle.Text.FontSize = 8;
diagramStyle.Text.Bold = true;
diagramStyle.Text.Italic = true;
diagramStyle.Text.Underline = true;
diagramStyle.Valign = "Top";
diagramStyle.Halign = "Right";
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle);
TabulationBorder border = new TabulationBorder ("All", 1, "Solid", new Color ("green", false));
p.SetTableDiagramStyle(TableDiagram_ColumnHeaderLevel2,  TABLE_DIAGRAM_STYLE_BORDER_STYLE, border);
diagramStyle.Decimal = 2;
p.SetTableDiagramStyle(TableDiagram_AbsoluteColumn, TABLE_DIAGRAM_STYLE_DECIMAL, diagramStyle.Decimal);
Tabulation t = new Tabulation ();
t.StyleSheet = new ReportStyleSheet(11060624);
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);