ApiExamples.ExLists.CreatePictureBullet C# (CSharp) Метод

CreatePictureBullet() приватный Метод

private CreatePictureBullet ( ) : void
Результат void
        public void CreatePictureBullet()
        {
            //ExStart
            //ExFor: ListLevel.CreatePictureBullet
            //ExFor: ListLevel.DeletePictureBullet
            //ExSummary: Shows how to creating and deleting picture bullet with custom image
            Document doc = new Document();

            // Create a list with template
            Aspose.Words.Lists.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(this._image);

            Assert.IsTrue(list.ListLevels[0].ImageData.HasImage);
            
            // Delete picture bullet
            list.ListLevels[0].DeletePictureBullet();
            
            Assert.IsNull(list.ListLevels[0].ImageData);
            //ExEnd
        }
    }