Difference between revisions of "TabulationTextStyle class"
(Created page with "{{CGscriptClass_Template |Name=TabulationTextStyle |Description=Styles for use on a portion of text |Constructors= {{CGscriptConstructors_Template|Description=Create a new Tab...") |
|||
Line 16: | Line 16: | ||
{{CGscriptProperties_Template|ReturnType=bool|Name=Underline|HasGetter=1|HasSetter=1|Description=Get/Set Underline to string.}} | {{CGscriptProperties_Template|ReturnType=bool|Name=Underline|HasGetter=1|HasSetter=1|Description=Get/Set Underline to string.}} | ||
}} | }} | ||
+ | |||
+ | === <span style="color:#DF8621">'''Examples'''</span> === | ||
+ | |||
+ | <source lang="javascript"> | ||
+ | TabulationTextStyle textStyle = new TabulationTextStyle(); | ||
+ | textStyle.Color = Color_getByName("red"); //Takes a color array- | ||
+ | textStyle.Color = Color_getByRGB(0,0,0); // can also be set from rgb. | ||
+ | textStyle.FontFace = "Bariol Regular"; | ||
+ | textStyle.FontSize = 40; //1-399 | ||
+ | textStyle.Bold = false; | ||
+ | textStyle.Italic = false; | ||
+ | textStyle.Underline = false; | ||
+ | </source> |
Revision as of 15:11, 21 June 2016
TabulationTextStyle
Styles for use on a portion of text
Constructors
- () - Create a new TabulationTextStyle
Methods
- string ToString() - The string representation of the object.
Properties
- bool Bold { get; set; } - Get/Set Bold to string.
- array Color { get; set; } - Get/Set Color of string.
- string FontFace { get; set; } - Get/Set FontFace of string.
- int FontSize { get; set; } - Get/Set FontSize of string in points.
- bool Italic { get; set; } - Get/Set Italic to string.
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
- bool Underline { get; set; } - Get/Set Underline to string.
Examples
TabulationTextStyle textStyle = new TabulationTextStyle();
textStyle.Color = Color_getByName("red"); //Takes a color array-
textStyle.Color = Color_getByRGB(0,0,0); // can also be set from rgb.
textStyle.FontFace = "Bariol Regular";
textStyle.FontSize = 40; //1-399
textStyle.Bold = false;
textStyle.Italic = false;
textStyle.Underline = false;