客製化項目符號
using IronPPT;
using IronPPT.Models;
using IronPPT.Models.Styles;

// Create new PowerPoint presentation
var document = new PresentationDocument();

// Import image
Image image = new Image();
image.LoadFromFile("sample.png");

// Style the bullet point
var style = new ParagraphStyle()
{
    Bullet = new Bullet()
    {
        Picture = image,
        //BulletColor = Color.Blue,
        //FollowsDefaultTextSize = true
    },
};

var paragraph = new Paragraph();
paragraph.Style = style;
paragraph.AddText("Test Text");

document.Slides[0].AddParagraph(paragraph);

// Export PowerPoint presentation
document.Save("styledBullet.pptx");
NuGet 下載
PM > Install-Package IronPPT
客製化項目符號

客製化項目符號

??????????????????????????????????????????????????????????IronPPT ??????????????????????????????????????????????????????????

???????????????????????????????????

???????? 6 ??

  • Image image = new Image(); image.LoadFromFile("sample.png");
  • var style = new ParagraphStyle();
  • style.Bullet = new Bullet() { Picture = image };
  • var paragraph = new Paragraph();
  • paragraph.Style = style;
  • paragraph.AddText("測試文字");

程式碼說明

??????????????????????? ParagraphStyle ????????????????????????????? Bullet ???????????????? Picture ????????????????????????????

?? ParagraphStyle ?????? Paragraph ???????????????? ParagraphStyle?????????????????? AddText ??????????????????????????????????

透過我們的逐步指南學習如何管理幻燈片
在 GitHub 查看

準備好開始了嗎?

NuGet 下載次數 7,381版本:2026.11剛剛發布