Difference between revisions of "DiagramFontStyle getDefault"

From Catglobe Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
  
 
DiagramFontStyle_getDefault()  
 
DiagramFontStyle_getDefault()  
 +
 +
or can use [[TabulationTextStyle_class|TabulationTextStyle]]
  
 
'''Arguments'''  
 
'''Arguments'''  
Line 17: Line 19:
 
Returns the following array  
 
Returns the following array  
  
{| cellpadding="2" border="1" width="907" class="tableintopic" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);"
+
{| cellpadding="2" border="1" width="907" style="border-collapse: collapse; border: 1px solid rgb(1, 1, 1);" class="tableintopic"
 
|- align="left" valign="top"
 
|- align="left" valign="top"
 
| bgcolor="#f59d56" align="center" width="222" valign="middle" style="border: 1px solid rgb(1, 1, 1);" |  
 
| bgcolor="#f59d56" align="center" width="222" valign="middle" style="border: 1px solid rgb(1, 1, 1);" |  
Line 143: Line 145:
 
''print(font);''  
 
''print(font);''  
  
''//Result: {18,Arial,10,{17,255,255,255},False,False,False,False}''  
+
''//Result: (e.g: {18,Arial,10,{17,255,255,255},False,False,False,False})''  
  
''{{note}} This function should be paired with create diagram functions''
+
''{{note}} This function should be paired with create diagram functions''  
  
 
'''Availability'''  
 
'''Availability'''  

Latest revision as of 08:14, 22 September 2023



DiagramFontStyle_getDefault

Gets a default chart chart font style object that can then be used for setting styles for various parts of charts. The default settings are derived from the systems set default style sheet. Since this is defined when setting up the system, these help files cannot tell you what the actual default values for your site willl be.

Syntax

DiagramFontStyle_getDefault()

or can use TabulationTextStyle

Arguments

None

Return type

Returns the following array

Constant

Type

Initial/Default value

Description

OBJECT_TYPE

Number

18

Enumeration for the object type.

DIAGRAM_FONT_STYLE_FACE

String

Default extracted from system's default style sheet.

Font face. Currently, the system supports the following font face: arial, courier new, lucida sans unicode, ms sans serif, tahoma, verdana, arial black, arial narrow, comic sans ms, wingdings, kantipur.

DIAGRAM_FONT_STYLE_SIZE

Number

Default extracted from system's default style sheet.

Font size.

DIAGRAM_FONT_STYLE_COLOR

Array

Default extracted from system's default style sheet.

Font color.

DIAGRAM_FONT_STYLE_BOLD

Boolean

Default extracted from system's default style sheet.

Font style: bold.

DIAGRAM_FONT_STYLE_ITALIC

Boolean

Default extracted from system's default style sheet.

Font style: italic.

DIAGRAM_FONT_STYLE_UNDERLINE

Boolean

Default extracted from system's default style sheet.

Font style: underline.

DIAGRAM_FONT_STYLE_INHERIT

Boolean

False

Specifies whether the font style will be inherited from the style sheet (when True) or gotten from the system's default (when False).

Examples

array font = DiagramFontStyle_getDefault();

print(font);

//Result: (e.g: {18,Arial,10,{17,255,255,255},False,False,False,False})

Note Note: This function should be paired with create diagram functions

Availability

Version 5.8.1