XmlModel Class
Represents one XML Editor buffer and returns a parse tree over that buffer in the form of an XDocument object.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.XmlEditor.XmlModel
Syntax
[CLSCompliantAttribute(false)]
public abstract class XmlModel : IDisposable
[CLSCompliantAttribute(false)]
public ref class XmlModel abstract : IDisposable
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type XmlModel =
class
interface IDisposable
end
<CLSCompliantAttribute(False)>
Public MustInherit Class XmlModel
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
XmlModel() | Initializes a new instance of the XmlModel class. |
Properties
Name | Description | |
---|---|---|
Document | Gets the XDocument object that represents the current parse tree for the XML Editor buffer. |
|
Name | Gets the file name used to open this model. |
|
SaveActionOnDispose | Gets or sets whether to save the action when dispose is called. |
|
Store | Gets the XmlStore that this XmlModel belongs to. |
Methods
Name | Description | |
---|---|---|
Dispose() | Releases all resources used by the current instance of the XmlModel class. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetTextSpan(XObject) | Gets the TextSpan object that represents the location of the specified node in the buffer. |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
BufferReloaded | Occurs when the XDocument has been completely reloaded. |
Remarks
An XmlModel object stays open until you call Dispose.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.VisualStudio.XmlEditor Namespace
Return to top