Table of Contents

Enum PdfUnorderedMarkerStyle

Namespace
Syncfusion.Pdf.Lists
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the marker style.

public enum PdfUnorderedMarkerStyle

Fields

Asterisk = 3

Marker is like a Asterisk.

Circle = 4

Marker is like a circle.

CustomImage = 6

Marker is custom image.

CustomString = 5

Marker is custom string.

CustomTemplate = 7

Marker is custom template.

Disk = 1

Marker is like a disk.

None = 0

Marker have no style.

Square = 2

Marker is like a square.

Examples

//Create a new PDf document
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
PdfGraphics graphics = page.Graphics;
//Create a unordered list
PdfUnorderedList list = new PdfUnorderedList();            
//Set the marker style
list.Marker.Style = PdfUnorderedMarkerStyle.Disk;
//Create a font and write title
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold);
//Create string format
PdfStringFormat format = new PdfStringFormat();
format.LineSpacing = 20f;
font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold);
//Apply formattings to list
list.Font = font;
list.StringFormat = format;
//Set list indent
list.Indent = 10;
//Add items to the list
list.Items.Add("List of Essential Studio products");
list.Items.Add("IO products");
//Set text indent
list.TextIndent = 10;
//Draw list
list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height));
document.Save("UnOrderList.pdf");
'Create a new PDf document
Dim document As PdfDocument = New PdfDocument()
'Create a page
Dim page As PdfPage = document.Pages.Add()
Dim graphics As PdfGraphics = page.Graphics
'Create a unordered list
Dim list As PdfUnorderedList = New PdfUnorderedList()
'Set the marker style
list.Marker.Style = PdfUnorderedMarkerStyle.Disk
'Create a font and write title
Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold)
'Create string format
Dim format As PdfStringFormat = New PdfStringFormat()
format.LineSpacing = 20f
font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold)
'Apply formattings to list
list.Font = font
list.StringFormat = format
'Set list indent
list.Indent = 10
'Add items to the list
list.Items.Add("List of Essential Studio products")
list.Items.Add("IO products")
'Set text indent
list.TextIndent = 10
'Draw list
list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height))
document.Save("UnOrderList.pdf")

See Also