Difference between revisions of "TabulationTextStyle class"
Line 1: | Line 1: | ||
{{CGscriptClass_Template | {{CGscriptClass_Template | ||
− | |Name=TabulationTextStyle | + | |Name=<nowiki>TabulationTextStyle</nowiki> |
− | |Description=Styles for use on a portion of text | + | |Description=<nowiki>Styles for use on a portion of text</nowiki> |
|Constructors= | |Constructors= | ||
− | {{CGscriptConstructors_Template|Description=Create a new TabulationTextStyle}} | + | {{CGscriptConstructors_Template|Description=<nowiki>Create a new TabulationTextStyle</nowiki>}} |
|Methods= | |Methods= | ||
− | {{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}} | + | {{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}} |
|Properties= | |Properties= | ||
− | {{CGscriptProperties_Template|ReturnType=bool|Name=Bold|HasGetter=1|HasSetter=1|Description=Get/Set Bold to string.}} | + | {{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Bold</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Bold to string.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=array|Name=Color|HasGetter=1|HasSetter=1|Description=Get/Set Color of string.}} | + | {{CGscriptProperties_Template|ReturnType=array|Name=<nowiki>Color</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Color of string.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=string|Name=FontFace|HasGetter=1|HasSetter=1|Description=Get/Set FontFace of string.}} | + | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>FontFace</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set FontFace of string.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=int|Name=FontSize|HasGetter=1|HasSetter=1|Description=Get/Set FontSize of string in points.}} | + | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>FontSize</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set FontSize of string in points. Must be 1-400 points</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=bool|Name=Italic|HasGetter=1|HasSetter=1|Description=Get/Set Italic to string.}} | + | {{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Italic</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Italic to string.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}} | + | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | + | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=bool|Name=Underline|HasGetter=1|HasSetter=1|Description=Get/Set Underline to string.}} | + | {{CGscriptProperties_Template|ReturnType=bool|Name=<nowiki>Underline</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Underline to string.</nowiki>}} |
}} | }} | ||
Revision as of 12:11, 23 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. Must be 1-400 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;