Share via


XmlEditingScope Members

Represents a change to the XmlStore.

The following tables list the members exposed by the XmlEditingScope type.

Protected Constructors

  Name Description
  XmlEditingScope Initializes a new instance of the XmlEditingScope class.

Top

Public Properties

  Name Description
public property IsUndo Returns a boolean value indicating whether this XmlEditingScope is the result of an Undo or Redo operation.
public property Name Gets the name provided in XmlEditingScope.
public property Parent Returns the parent object if this XmlEditingScope has a parent.
public property Status Returns the status of this XmlEditingScope.
public property Store Gets the XmlStore instance that created this XmlEditingScope.
public property UndoScope Returns the original XmlEditingScope that created the undo unit if this XmlEditingScope comes from the UndoRedoCompleted event. Returns null in other cases.
public property UserState Gets the state object that was provided to the BeginEditingScope method.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Changes Overloaded. Returns a list of all pending XmlModelChange objects for the specified model.
public method Complete Completes all edits that were made while this XmlEditingScope object was active on any of the XmlModel objects in the associated XmlStore. This method pushes the changes to the underlying IVsTextLines buffers, and adds an undo unit to the IOleUndoManager provided to the associated XmlStore instance.
public method Dispose Releases all resources used by the current instance of the XmlEditingScope class.
public method Equals  (Inherited from Object)
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method Revert Reverts all the changes made while this XmlEditingScope object was active and sets the parse tree back to the state it was in before this XmlEditingScope began. The XmlEditingScopeStatus is set to Reverted. If this XmlEditingScope is the top-most parent, an EditingScopeCompleted event will be raised on the associated XmlStore. You can tell whether the XmlEditingScope was reverted in your EditingScopeCompleted event handler by checking the XmlEditingScopeStatus.
public method ToString  (Inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

See Also

Reference

XmlEditingScope Class
Microsoft.VisualStudio.XmlEditor Namespace

Build Date:

2012-11-12