Yorumlarla Çalışmak

Visio’de Sayfa Düzeyinde Yorum ekleyin

Aspose.Diagram for Java API, geliştiricilerin Visio çiziminin bir sayfasında herhangi bir yere yorum eklemesine olanak tanır.

Yorum ekle

Page sınıfı tarafından sunulan addComment yöntemi, bir çizim sayfasına yorum eklemenize olanak tanır. Bir yorum dizesiyle birlikte X ve Y koordinatlarını alır.

Microsoft Visio kullanıcıları, sayfanın sol üst köşesinde bir simge ile sunulan tüm sayfaya yorum ekler. Geliştiriciler şunları yapabilir:Visio’de sayfa düzeyinde yorumlar ekleyin. Aspose.Diagram for Java API ayrıca Visio’deki sayfa düzeyindeki yorumu değiştirmeyi destekler.

Yorum Programlama Örneği Ekle

// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(AddPageLevelCommentInVisio.class);
// Call the diagram constructor to load diagram
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
// Add comment
diagram.getPages().getPage(0).addComment(7.205905511811023, 3.880708661417323, "test@");
// Save diagram
diagram.save(dataDir + "AddPageLevelCommentInVisio_Out.vdx", SaveFileFormat.VSDX);

Visio Diagram’de bir Sayfa Düzeyinde Yorum düzenleyin

Aspose.Diagram for JavaAPI, sayfanın sol üst köşesinde bir simge ile gösterilen Visio çizim sayfasındaki sayfa düzeyinde yorumu değiştirme desteğine sahiptir.

Yorumu Düzenle

Annotation sınıfı tarafından sunulan Comment özelliği, geliştiricilerin Visio çizim sayfasındaki yorumları düzenlemesine olanak tanır.

Yorum Programlama Örneği Düzenle

// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(EditPageLevelCommentInVisio.class);
// load Visio
Diagram diagram = new Diagram(dataDir + "Drawing1.vsdx");
// get collection of the annotations
AnnotationCollection annotations = diagram.getPages().getPage("Page-1").getPageSheet().getAnnotations();
// iterate through the annotations
for (Annotation annotation : (Iterable<Annotation>) annotations)
{
String comment = annotation.getComment().getValue();
comment += "Updation mark";
annotation.getComment().setValue(comment);
}
// save Visio
diagram.save(dataDir + "EditPageLevelCommentInVisio_Out.vsdx", SaveFileFormat.VSDX);

Visio Çiziminde Şekil Düzeyinde Yorum Ekleme

Aspose.Diagram for JavaAPI, geliştiricilerin Visio çizimindeki şekle yorum eklemesine olanak tanır.

Yorum ekle

Page sınıfı tarafından sunulan aşırı yüklenmiş bir addComment yöntemi, bir Shape sınıfı örneğini ve yorumun metin dizesini alır.

Yorum Programlama Örneği Ekle

Java

 // load diagram

Diagram diagram = new Diagram("c:\\temp\\Drawing1.vsdx");

// retrieve page by name

Page page = diagram.getPages().getPage("Page-1");

// retrieve shape by ID

Shape shape = page.getShapes().getShape(12);

page.addComment(shape, "Hello");

// save diagram

diagram.save("c:\\temp\\Drawing1.vsdx", SaveFileFormat.VSDX);