GroupDocs.Annotation for .NET ทำให้การใส่คำอธิบายงานนำเสนอ PPTX ง่ายขึ้น:
- เปิดไฟล์ PPTX ด้วยอินสแตนซ์ของ Annotator.
- สร้างและกำหนดค่าคำอธิบายที่คุณต้องการ.
- เพิ่ม annotation ลงในงานนำเสนอ.
- บันทึก PPTX ที่มี annotation.
GroupDocs.Annotation for .NET ทำให้การใส่คำอธิบายงานนำเสนอ PPTX ง่ายขึ้น:
// ทำ annotation ให้กับงานนำเสนอ PPTX
// เปิด PPTX ด้วยอินสแตนซ์ของ Annotator
using (Annotator annotator = new Annotator("input.pptx"))
{
// สร้าง area annotation
AreaAnnotation area = new AreaAnnotation
{
Box = new Rectangle(100, 100, 200, 80),
BackgroundColor = 65535,
PageNumber = 0,
Message = "Important"
};
// เพิ่ม annotation
annotator.Add(area);
// บันทึก PPTX ที่มี annotation
annotator.Save("annotated.pptx");
}
เพิ่มทุกประเภทของ annotation ลงในงานนำเสนอ PowerPoint และจัดการด้วย API ที่เรียบง่าย

ไฮไลท์, ขีดเส้นใต้, ขีดฆ่า หรือแทนที่ข้อความในไฟล์ PPTX.
วาดรูปร่างและใส่ลายน้ำหรือรูปภาพลงบนสไลด์ PPTX.
ดึง, ลบ, นำเข้าและส่งออก PPTX annotations.
// เปิด PPTX ที่ทำ annotation
using (Annotator annotator = new Annotator("annotated.pptx"))
{
// ดึง annotations ทั้งหมด
List<AnnotationBase> annotations = annotator.Get();
// ตรวจสอบแต่ละ annotation
foreach (AnnotationBase annotation in annotations)
{
System.Console.WriteLine(annotation.Message);
}
// บันทึกงานนำเสนอ
annotator.Save("output.pptx");
}
ดาวน์โหลด GroupDocs.Annotation ฟรีหรือรับสิทธิ์การใช้งานแบบทดลองใช้เพื่อการเข้าถึงแบบเต็ม!
สำรวจเอกสารตัวอย่างรหัสและการสนับสนุนชุมชนเพื่อปรับปรุงประสบการณ์ของคุณ
GroupDocs.Annotation for .NET รองรับการทำ annotation ให้กับเอกสารในหลายรูปแบบไฟล์:

