.NET Framework Class Library
XmlFileEditor Class
Provides a user interface for selecting an XML file using a standard OpenFileDialog box.
Inheritance Hierarchy
System.Object
System.Drawing.Design.UITypeEditor
System.Web.UI.Design.XmlFileEditor
Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Syntax
Visual Basic
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)> _ Public Class XmlFileEditor _ Inherits UITypeEditor
C#
[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)] public class XmlFileEditor : UITypeEditor
Visual C++
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] public ref class XmlFileEditor : public UITypeEditor
F#
[<SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)>] type XmlFileEditor = class inherit UITypeEditor end
The XmlFileEditor type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
XmlFileEditor | Initializes a new instance of the XmlFileEditor class. |
Properties
| Name | Description | |
|---|---|---|
|
IsDropDownResizable | Gets a value indicating whether drop-down editors should be resizable by the user. (Inherited from UITypeEditor.) |
Methods
| Name | Description | |
|---|---|---|
|
EditValue(IServiceProvider, Object) | Edits the value of the specified object using the editor style indicated by the GetEditStyle method. (Inherited from UITypeEditor.) |
|
EditValue(ITypeDescriptorContext, IServiceProvider, Object) | Edits the value of the specified object using the specified service provider and context. (Overrides UITypeEditor.EditValue(ITypeDescriptorContext, IServiceProvider, Object).) |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEditStyle() | Gets the editor style used by the EditValue method. (Inherited from UITypeEditor.) |
|
GetEditStyle(ITypeDescriptorContext) | Gets the editing style associated with this editor, using the specified ITypeDescriptorContext object. (Overrides UITypeEditor.GetEditStyle(ITypeDescriptorContext).) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetPaintValueSupported() | Indicates whether this editor supports painting a representation of an object's value. (Inherited from UITypeEditor.) |
|
GetPaintValueSupported(ITypeDescriptorContext) | Indicates whether the specified context supports painting a representation of an object's value within the specified context. (Inherited from UITypeEditor.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
PaintValue(PaintValueEventArgs) | Paints a representation of the value of an object using the specified PaintValueEventArgs. (Inherited from UITypeEditor.) |
|
PaintValue(Object, Graphics, Rectangle) | Paints a representation of the value of the specified object to the specified canvas. (Inherited from UITypeEditor.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
XmlFileEditor is a UITypeEditor that provides a dialog for selecting an XML file for a file name property.
Examples
Visual Basic
<EditorAttribute(GetType(System.Web.UI.Design.XmlFileEditor), GetType(UITypeEditor))> _ Public Property XmlFile() As String Get Return xml_ End Get Set xml_ = value End Set End Property Private xml_ As String
C#
[EditorAttribute(typeof(System.Web.UI.Design.XmlFileEditor), typeof(UITypeEditor))] public string XmlFile { get { return xml_; } set { xml_ = value; } } private string xml_;
Visual C++
private: property String^ XmlFile { [EditorAttribute(XmlFileEditor::typeid,UITypeEditor::typeid)] String^ get() { return xml_; } [EditorAttribute(XmlFileEditor::typeid,UITypeEditor::typeid)] void set( String^ value ) { xml_ = value; } } String^ xml_;
Version Information
.NET Framework
Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
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