コメント・オブジェクトの作成
以下の Java™ および C# の例では、ClbDocumentComment オブジェクトを作成します。
タグは、渡された Document オブジェクトに適用されます。
Java の例
CmAbstractPersistable comment = Factory.CmAbstractPersistable.createInstance(os,"ClbDocumentComment");
String commentText="Modified section 3.1.6";
comment.getProperties().putValue("ClbCommentText",commentText);
comment.getProperties().putObjectValue("ClbCommentedDocument",documentObj);
comment.save(RefreshMode.REFRESH);
C# の例
ICmAbstractPersistable comment = Factory.CmAbstractPersistable.CreateInstance(os, "ClbDocumentComment");
String commentText = "Modified section 3.1.6";
comment.Properties["ClbCommentText"] = commentText;
comment.Properties["ClbCommentedDocument"] = documentObj;
comment.Save(RefreshMode.REFRESH);