Conflict Interface

Definition

Represents a conflicting edit in a co-authored document. The type of a Conflict object is specified by the WdRevisionType enumeration.

public interface class Conflict
[System.Runtime.InteropServices.Guid("6215E4B1-545A-406E-9824-0A5B5AC8AD21")]
public interface Conflict
type Conflict = interface
Public Interface Conflict
Attributes

Remarks

Normally, when a document with co-authoring enabled is simultaneously edited, only one co-author can edit a particular range at one time. Microsoft Word 2010 automatically places a lock on the range the moment the co-author begins editing so that other co-authors cannot edit the same range at the same time.

A conflict can occur when a particular range in a document with co-authoring enabled is simultaneously edited before any single co-author obtains an exclusive lock on the range. In a conflict situation, it appears to each co-author that they have an exclusive lock on the range, but their lock is not communicated to the other co-authors. The co-author that saves to the server first will not see the conflict because their version of the document becomes the established version. The co-authors that attempt to save after the first co-author has saved encounter a conflict. The conflict is between the differing versions of the same range.

For example, if one co-author edits the sentence, "The quick brown fox" to read "The fast red fox", and another co-author simultaneously edits the sentence to read, "The speedy white fox" and both edits occur before either co-author obtains an exclusive lock on the paragraph, a conflict occurs. In this case, "fast red" and "speedy white" cannot be reconciled by Word 2010. The first co-author to save their version of the document to the server does not encounter a conflict. When the next co-author attempts to save their version of the document to the server, a conflict occurs and the co-author must choose to resolve the conflict by either accepting or rejecting the changes.

Properties

Application

Gets an Application object that represents the Microsoft Word application.

Creator

Gets a 32-bit integer that indicates the application in which the specified object was created.

Index

Returns a value that represents the position of an item in a collection.

Parent

Gets an Object that represents the parent object of the specified Conflict object.

Range

Gets a Range object that represents the portion of a document that is contained in the specified object.

Type

Gets the WdRevisionType for the Conflict object.

Methods

Accept()

Accepts the user specified conflict change, removes the conflict, and merges the change into the server copy of the document.

Reject()

Rejects the user change, removes the conflict, and accepts the server copy of the change for the conflict.

Applies to