Difference between revisions of "ReportStyleSheet class"
(Created page with "{{CGscriptClass_Template |Name=<nowiki>ReportStyleSheet</nowiki> |Description=<nowiki>Represents a report style sheet style.</nowiki> |InheritsFrom=object|Constructors= {{CGsc...") |
|||
Line 20: | Line 20: | ||
{{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 reportStylesheet when CreateCrossDiagram | ||
+ | number reportStyleSheetId = 11060624; | ||
+ | TabulationDiagramParameter p = new TabulationDiagramParameter(); | ||
+ | p.DataCacheId = 16749647; | ||
+ | Tabulation t = new Tabulation(); | ||
+ | t.StyleSheet = new ReportStyleSheet(reportStyleSheetId); | ||
+ | t.CreateCrossDiagram({"Q1"}, {"Q2"}, p); | ||
+ | </source> |
Latest revision as of 11:27, 11 May 2022
ReportStyleSheet
Represents a report style sheet style.
Parent class
Inherits from object
Constructors
- () - Create a report style sheet
- (int Id "Id of report style sheet") - Load existing report style sheet by Id
- (string QualifiedName "Fullname of report style sheet") - Loading existing report style sheet by name
Methods
- (From object) string ToString() - The string representation of the object.
Properties
- string Html { get; set; } - Html
- int Id { get; } - Id of report style sheet
- string Name { get; } - Name of report style sheet
- string ObjectTypeName { get; } - The name of the type of object.
- string QualifiedName { get; } - Fullname of report style sheet
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
Examples
//set reportStylesheet when CreateCrossDiagram
number reportStyleSheetId = 11060624;
TabulationDiagramParameter p = new TabulationDiagramParameter();
p.DataCacheId = 16749647;
Tabulation t = new Tabulation();
t.StyleSheet = new ReportStyleSheet(reportStyleSheetId);
t.CreateCrossDiagram({"Q1"}, {"Q2"}, p);