More actions
Nguyenduyan (talk | contribs) No edit summary |
Nguyenduyan (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
bulletdot.Level = 1;//Defines what level of the list we want the paragraph. | bulletdot.Level = 1;//Defines what level of the list we want the paragraph. | ||
bulletdot.Color = Color_getByName("green"); | bulletdot.Color = Color_getByName("green"); | ||
//For dot bullettype | //For dot bullettype | ||
bulletdot.BulletType = 2; | 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); | |||
</source> | </source> |
Revision as of 09:32, 18 July 2018
TabulationBulletDot
Settings for Dotbullets on paragraph
Constructors
- () - Create a new Bullet Setting for list with Dots
Methods
- 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
- Color Color { get; set; } - Get/Set Color of bullets and numbers
- int Level { get; set; } - Get/Set Level of nesting of list element
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
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);