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
Created page with "{{CGscriptClass_Template |Name=TabulationParagraphStyle |Description=Styles for a paragraph |Constructors= {{CGscriptConstructors_Template|Description=Create a new ParagraphSt..."
 
No edit summary
Line 18: Line 18:
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
TabulationParagraphStyle paragraphStyle = new TabulationParagraphStyle();
paragraphStyle.Alignment = "center"; //left, right, center.
paragraphStyle.MarginTopPoints = 10; //1-399
paragraphStyle.MarginLeftPoints = 10;//1-399
</source>

Revision as of 14:30, 21 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.
  • int MarginLeftPoints { get; set; } - Get/Set marginLeft in points.
  • int MarginRightPoints { get; set; } - Get/Set marginRight in points.
  • int MarginTopPoints { get; set; } - Get/Set marginTop in 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; //1-399
paragraphStyle.MarginLeftPoints = 10;//1-399