Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

TabulationParagraphStyle class: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{CGscriptClass_Template
{{CGscriptClass_Template
|Name=<nowiki>TabulationParagraphStyle</nowiki>
|Name=TabulationParagraphStyle
|Description=<nowiki>Styles for a paragraph</nowiki>
|Description=Styles for a paragraph
|Constructors=
|Constructors=
{{CGscriptConstructors_Template|Description=<nowiki>Create a new ParagraphStyle</nowiki>}}
{{CGscriptConstructors_Template|Description=Create a new ParagraphStyle}}
|Methods=
|Methods=
{{CGscriptMethods_Template|ReturnType=Empty|Name=<nowiki>SetBulletSetting</nowiki>|Parameters=
{{CGscriptMethods_Template|ReturnType=Empty|Name=SetBulletSetting|Parameters=
{{CGscriptParameters_Template|Type=TabulationBullet|Name=<nowiki>bulletSettings</nowiki>|Description=<nowiki>Styling of the bullets</nowiki>}}
{{CGscriptParameters_Template|Type=TabulationBullet|Name=bulletSettings|Description=Styling of the bullets}}
|Description=<nowiki>Apply Bulletsettings to paragraphStyle to turn the paragraph into a list of bullets</nowiki>}}
|Description=Apply Bulletsettings to paragraphStyle to turn the paragraph into a list of bullets}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}}
|Properties=
|Properties=
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Alignment</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set alignment of paragraph: Left, Right, Center, Justify</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=Alignment|HasGetter=1|HasSetter=1|Description=Get/Set alignment of paragraph: Left, Right, Center, Justify}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>MarginBottomPoints</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set marginBottom in points. Must be 0-400 points</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=MarginBottomPoints|HasGetter=1|HasSetter=1|Description=Get/Set marginBottom in points. Must be 0-400 points}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>MarginLeftPoints</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set marginLeft in points. Must be 0-400 points</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=MarginLeftPoints|HasGetter=1|HasSetter=1|Description=Get/Set marginLeft in points. Must be 0-400 points}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>MarginRightPoints</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set marginRight in points. Must be 0-400 points</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=MarginRightPoints|HasGetter=1|HasSetter=1|Description=Get/Set marginRight in points. Must be 0-400 points}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>MarginTopPoints</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set marginTop in points. Must be 0-400 points</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=MarginTopPoints|HasGetter=1|HasSetter=1|Description=Get/Set marginTop in points. Must be 0-400 points}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
}}
}}


Line 24: Line 24:
TabulationParagraphStyle paragraphStyle = new TabulationParagraphStyle();
TabulationParagraphStyle paragraphStyle = new TabulationParagraphStyle();
paragraphStyle.Alignment = "center"; //left, right, center.
paragraphStyle.Alignment = "center"; //left, right, center.
paragraphStyle.MarginTopPoints = 10; //1-399
paragraphStyle.MarginTopPoints = 10; //0-400
paragraphStyle.MarginLeftPoints = 10;//1-399
paragraphStyle.MarginLeftPoints = 10;//0-400
</source>
</source>

Revision as of 11:10, 23 June 2016

TabulationParagraphStyle



Styles for a paragraph

Constructors

  • () - Create a new ParagraphStyle

Methods

  • Empty SetBulletSetting(TabulationBullet bulletSettings "Styling of the bullets") - Apply Bulletsettings to paragraphStyle to turn the paragraph into a list of bullets
  • string ToString() - The string representation of the object.

Properties

  • string Alignment { get; set; } - Get/Set alignment of paragraph: Left, Right, Center, Justify
  • int MarginBottomPoints { get; set; } - Get/Set marginBottom in points. Must be 0-400 points
  • int MarginLeftPoints { get; set; } - Get/Set marginLeft in points. Must be 0-400 points
  • int MarginRightPoints { get; set; } - Get/Set marginRight in points. Must be 0-400 points
  • int MarginTopPoints { get; set; } - Get/Set marginTop in points. Must be 0-400 points
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

TabulationParagraphStyle paragraphStyle = new TabulationParagraphStyle();
paragraphStyle.Alignment = "center"; //left, right, center.
paragraphStyle.MarginTopPoints = 10; //0-400
paragraphStyle.MarginLeftPoints = 10;//0-400