Difference between revisions of "TabulationBulletDot class"

From Catglobe Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
|Name=<nowiki>TabulationBulletDot</nowiki>
 
|Name=<nowiki>TabulationBulletDot</nowiki>
 
|Description=<nowiki>Settings for Dotbullets on paragraph</nowiki>
 
|Description=<nowiki>Settings for Dotbullets on paragraph</nowiki>
|Constructors=
+
|InheritsFrom=TabulationBullet|Constructors=
 
{{CGscriptConstructors_Template|Description=<nowiki>Create a new Bullet Setting for list with Dots</nowiki>}}
 
{{CGscriptConstructors_Template|Description=<nowiki>Create a new Bullet Setting for list with Dots</nowiki>}}
 
|Methods=
 
|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
+
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
 
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>BulletType</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set bulletType number 1-7. Find styles on http://www.aspose.com/docs/display/pdfnet/use+system+defined+bullets</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>BulletType</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set bulletType number 1-7. Find styles on http://www.aspose.com/docs/display/pdfnet/use+system+defined+bullets</nowiki>}}
{{CGscriptProperties_Template|ReturnType=Color|Name=<nowiki>Color</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Color of bullets and numbers</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=Color|Name=<nowiki>Color</nowiki>|HasGetter=1|HasSetter=1|Inherited=TabulationBullet|Description=<nowiki>Get/Set Color of bullets and numbers</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>Level</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set Level of nesting of list element</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>Level</nowiki>|HasGetter=1|HasSetter=1|Inherited=TabulationBullet|Description=<nowiki>Get/Set Level of nesting of list element</nowiki>}}
 
{{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=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}
  

Latest revision as of 09:21, 2 July 2020

TabulationBulletDot


Settings for Dotbullets on paragraph

Parent class

Inherits from TabulationBullet

Constructors

  • () - Create a new Bullet Setting for list with Dots

Methods

  • (From object) string ToString() - The string representation of the object.

Properties

  • int BulletType { get; set; } - Get/Set bulletType number 1-7. Find styles on http://www.aspose.com/docs/display/pdfnet/use+system+defined+bullets
  • (From TabulationBullet) Color Color { get; set; } - Get/Set Color of bullets and numbers
  • (From TabulationBullet) int Level { get; set; } - Get/Set Level of nesting of list element
  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Relevant Classes and function: TabulationParagraphStyle, TabulationTextStyle, TabulationParagraph, Tabulation_addParagraph

Examples

TabulationBulletDot bulletdot = new TabulationBulletDot();
//For all bullet types
bulletdot.Level = 1;//Defines what level of the list we want the paragraph. 
bulletdot.Color = Color_getByName("green");
//For dot bullettype
bulletdot.BulletType = 2;

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

TabulationTextStyle textStyle = new TabulationTextStyle();
textStyle.Color = Color_getByName("red"); //Takes a color array-
//textStyle.Color = Color_getByRGB(255,0,0); // can also be set from rgb.
//textStyle.Color = new Color("red",false); // can also be set by Color object
textStyle.FontFace = "Bariol Regular";
textStyle.FontSize = 40; //1-399
textStyle.Bold = false;
textStyle.Italic = false;
textStyle.Underline = false;

TabulationParagraph paragraph = new TabulationParagraph(paragraphStyle);
paragraph.AddPortion("Some text", textStyle);

Tabulation_addParagraph(paragraph);