Mürekkep
Contents
[
Hide
]
Bu makale, mevcut mürekkep şekillerine erişme ve Aspose.Slides for Android via Java kullanarak bunları kaldırma örnekleri sunar.
❗ Not: Mürekkep şekilleri, özel cihazlardan gelen kullanıcı girdisini temsil eder. Aspose.Slides programlı olarak yeni mürekkep darbeleri oluşturamaz, ancak mevcut mürekkebi okuyabilir ve değiştirebilirsiniz.
Mürekkebe Erişim
Bir slayttaki ilk mürekkep şeklinin etiketlerini okuyun.
static void accessInk() {
Presentation presentation = new Presentation("ink.pptx");
try {
ISlide slide = presentation.getSlides().get_Item(0);
IShape shape = slide.getShapes().get_Item(0);
if (shape instanceof IInk) {
IInk inkShape = (IInk) shape;
ITagCollection tags = inkShape.getCustomData().getTags();
if (tags.size() > 0) {
String tagName = tags.getNameByIndex(0);
// tagName'i gerektiği gibi kullanın.
}
}
} finally {
presentation.dispose();
}
}
Mürekkebi Kaldır
Eğer varsa, slayttan bir mürekkep şekli silin.
static void removeInk() {
Presentation presentation = new Presentation("ink.pptx");
try {
ISlide slide = presentation.getSlides().get_Item(0);
IInk ink = null;
for (IShape shape : slide.getShapes()) {
if (shape instanceof IInk) {
ink = (IInk) shape;
break;
}
}
if (ink != null) {
slide.getShapes().remove(ink);
}
} finally {
presentation.dispose();
}
}