ListLevelDeletePictureBullet Method

Deletes picture bullet for the current list level.

Namespace:  Aspose.Words.Lists
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void DeletePictureBullet()
Remarks
Default bullet will be shown after deleting.
Examples
Shows how to creating and deleting picture bullet with custom image.
Document doc = new Document();

// Create a list with template
List list = doc.Lists.Add(ListTemplate.BulletCircle);

// Create picture bullet for the current list level
list.ListLevels[0].CreatePictureBullet();

// Set your own picture bullet image through the ImageData
list.ListLevels[0].ImageData.SetImage(ImageDir + "Logo icon.ico");

Assert.IsTrue(list.ListLevels[0].ImageData.HasImage);

// Create a list, configure its bullets to use our image and add two list items
DocumentBuilder builder = new DocumentBuilder(doc);

builder.ListFormat.List = list;
builder.Writeln("Hello world!");
builder.Write("Hello again!");

doc.Save(ArtifactsDir + "Lists.CreatePictureBullet.docx");

// Delete picture bullet
list.ListLevels[0].DeletePictureBullet();

Assert.IsNull(list.ListLevels[0].ImageData);
See Also