Difference between revisions of "TabulationFillStyle class"
Line 21: | Line 21: | ||
//*** Set fillStyle for ColumnHeaderLevel2 (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 28: | ||
//TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | //TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | ||
//TabulationFillStyle fillStyle = diagramStyle.Fill; | //TabulationFillStyle fillStyle = diagramStyle.Fill; | ||
− | fillStyle.Color = new Color (" | + | 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 35: | ||
</source> | </source> | ||
− | [[File:2022-05- | + | [[File:2022-05-12_11-34-56.jpg]] |
<br> | <br> | ||
<br> | <br> | ||
Line 40: | Line 41: | ||
//*** Set fillStyle for ColumnHeaderLevel2 (other diagramStyle if not set will 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 45: | Line 47: | ||
TabulationFillStyle fillStyle = new TabulationFillStyle(); | TabulationFillStyle fillStyle = new TabulationFillStyle(); | ||
TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | TabulationDiagramStyle diagramStyle = new TabulationDiagramStyle(); | ||
− | diagramStyle.Fill.Color = new Color (" | + | 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 51: | Line 53: | ||
t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p); | t.CreateCrossDiagram({"Rit_3"}, {"VilStemme"}, p); | ||
</source> | </source> | ||
− | [[File:2022-05- | + | [[File:2022-05-12_11-35-31.jpg]] |
Latest revision as of 05:39, 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 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);