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 | |
---|---|---|
IsUndo | Returns a boolean value indicating whether this XmlEditingScope is the result of an Undo or Redo operation. | |
Name | Gets the name provided in XmlEditingScope. | |
Parent | Returns the parent object if this XmlEditingScope has a parent. | |
Status | Returns the status of this XmlEditingScope. | |
Store | Gets the XmlStore instance that created this XmlEditingScope. | |
UndoScope | Returns the original XmlEditingScope that created the undo unit if this XmlEditingScope comes from the UndoRedoCompleted event. Returns null in other cases. | |
UserState | Gets the state object that was provided to the BeginEditingScope method. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Changes | Overloaded. Returns a list of all pending XmlModelChange objects for the specified model. | |
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. | |
Dispose | Releases all resources used by the current instance of the XmlEditingScope class. | |
Equals | (Inherited from Object) | |
GetHashCode | (Inherited from Object) | |
GetType | (Inherited from Object) | |
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. | |
ToString | (Inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
See Also
Reference
XmlEditingScope Class
Microsoft.VisualStudio.XmlEditor Namespace
Build Date:
2012-11-12