XmlEditingScope Class

 

Represents a change to the XmlStore.

Namespace:   Microsoft.VisualStudio.XmlEditor
Assembly:  Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)

System::Object
  Microsoft.VisualStudio.XmlEditor::XmlEditingScope

[CLSCompliantAttribute(false)]
public ref class XmlEditingScope abstract : IDisposable

NameDescription
System_CAPS_protmethodXmlEditingScope()

Initializes a new instance of the XmlEditingScope class.

NameDescription
System_CAPS_pubpropertyIsUndo

Returns a boolean value indicating whether this XmlEditingScope is the result of an Undo or Redo operation.

System_CAPS_pubpropertyName

Gets the name provided in XmlEditingScope.

System_CAPS_pubpropertyParent

Returns the parent object if this XmlEditingScope has a parent.

System_CAPS_pubpropertyStatus

Returns the status of this XmlEditingScope.

System_CAPS_pubpropertyStore

Gets the XmlStore instance that created this XmlEditingScope.

System_CAPS_pubpropertyUndoScope

Returns the original XmlEditingScope that created the undo unit if this XmlEditingScope comes from the UndoRedoCompleted event. Returns null in other cases.

System_CAPS_pubpropertyUserState

Gets the state object that was provided to the M:Microsoft.VisualStudio.XmlEditor.XmlStore.BeginEditingScope method.

NameDescription
System_CAPS_pubmethodChanges(XmlModel^)

Returns a list of all pending XmlModelChange objects for the specified model.

System_CAPS_pubmethodChanges(XmlStore^)

Returns a list of all pending XmlModelChange objects for the spcified XmlStore.

System_CAPS_pubmethodComplete()

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.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the XmlEditingScope class.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRevert()

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.

System_CAPS_pubmethodToString()

(Inherited from Object.)

You can make any number of changes on any of the T:System.Xml.Linq.XNodes in the XmlModel objects returned from the XmlStore. All these changes will be pushed to the various XML editor buffers when you call M:Microsoft.VisualStudio.XmlEditor.Complete. Linked multi-buffer undo is supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: