Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
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
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
Line 17: Line 17:
{{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|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
//*** Set ColumnHeaderLevel2 fillStyle color to red (other diagramStyle still keep using from styleSheet) ***//
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle(); 
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
//TabulationFillStyle fillStyle = diagramStyle.Fill;
fillStyle.Color = new Color ("red", 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_9-54-58.jpg]]
<source lang="javascript">
//*** Set ColumnHeaderLevel2 fillStyle color to red (other diagramStyle using from default)***//
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle(); 
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
diagramStyle.Fill.Color = new Color ("red", 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_9-51-28.jpg]]

Revision as of 03:02, 12 May 2022

TabulationFillStyle



Styles for use on a portion of text

Parent class

Inherits from object

Constructors

  • () - Create a new TabulationFillStyle
  • (bool isDefault "load default fill style") - Create a default TabulationFillStyle

Methods

  • TabulationFillStyle Clone() - Deep copy TabulationFillStyle object
  • (From object) string ToString() - The string representation of the object.

Properties

  • 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).
  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.

Examples

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

TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle();  
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
//TabulationFillStyle fillStyle = diagramStyle.Fill;
fillStyle.Color = new Color ("red", 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 ColumnHeaderLevel2 fillStyle color to red (other diagramStyle using from default)***//

TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 17116726;
TabulationFillStyle fillStyle = new TabulationFillStyle();  
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle();
diagramStyle.Fill.Color = new Color ("red", false);
p.SetDiagramStyle(TableDiagram_ColumnHeaderLevel2, diagramStyle);
Tabulation t = new Tabulation ();
t.StyleSheet = new ReportStyleSheet(11060624);
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p);