Difference between revisions of "TabulationParagraphStyle class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=TabulationParagraphStyle |Description=Styles for a paragraph |Constructors= {{CGscriptConstructors_Template|Description=Create a new ParagraphSt...")
 
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 15: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