Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.documents.document.trackchanges
Class TrackChange

    java.lang.Object
      application.workbooks.workbook.documents.document.trackchanges.TrackChange

public class TrackChange
extends java.lang.Object

该类定义了接受和拒绝修订的方法。

Method Summary
`void` | `accept()` 接受修订。
`void` | `reject()` 拒绝修订。

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### accept

    public void accept()

  接受修订。

  例子：

       Document doc = Application.getWorkbooks().getActiveDocument();
       Section section = doc.getSection(0);
       BaseText baseText = section.getBaseText();
       TrackChanges tc = doc.getTrackChanges();
       tc.beginTrackChange();
       baseText.insert(0,"new1");
       baseText.insert(10,"new2");
       TrackChange trackChange = tc.getPreviousTrackChange();
       trackChange.accept();

### reject

    public void reject()

  拒绝修订。

  例子：

       Document doc = Application.getWorkbooks().getActiveDocument();
       Section section = doc.getSection(0);
       BaseText baseText = section.getBaseText();
       TrackChanges tc = doc.getTrackChanges();
       tc.beginTrackChange();
       baseText.insert(0,"new1");
       baseText.insert(10,"new2");
       TrackChange trackChange = tc.getPreviousTrackChange();
       trackChange.reject();

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

版权所有 2001-2004 无锡永中科技有限公司