XsdSchemaFileEditor Class
Collapse the table of content
Expand the table of content

XsdSchemaFileEditor Class


Provides a design-time user interface for selecting an XML schema definition file.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class XsdSchemaFileEditor : UrlEditor


Initializes a new instance of the XsdSchemaFileEditor class.


Gets the caption to display on the selection dialog box.(Overrides UrlEditor.Caption.)


Gets the URL filter options for the editor, which are used to filter the items that appear in the URL selection dialog box.(Overrides UrlEditor.Filter.)


Gets a value indicating whether drop-down editors should be resizable by the user.(Inherited from UITypeEditor.)


Gets the options for the URL builder to use.(Inherited from UrlEditor.)

System_CAPS_pubmethodEditValue(IServiceProvider, Object)

Edits the value of the specified object using the editor style indicated by the GetEditStyle method.(Inherited from UITypeEditor.)

System_CAPS_pubmethodEditValue(ITypeDescriptorContext, IServiceProvider, Object)

Edits the value of the specified object using the editor style provided by the GetEditStyle method.(Inherited from UrlEditor.)


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Gets the editor style used by the EditValue method.(Inherited from UITypeEditor.)


Gets the editing style of the EditValue method.(Inherited from UrlEditor.)


Serves as the default hash function. (Inherited from Object.)


Indicates whether this editor supports painting a representation of an object's value.(Inherited from UITypeEditor.)


Indicates whether the specified context supports painting a representation of an object's value within the specified context.(Inherited from UITypeEditor.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodPaintValue(Object, Graphics, Rectangle)

Paints a representation of the value of the specified object to the specified canvas.(Inherited from UITypeEditor.)


Paints a representation of the value of an object using the specified PaintValueEventArgs.(Inherited from UITypeEditor.)


Returns a string that represents the current object.(Inherited from Object.)

An XsdSchemaFileEditor object is used at design time to select and edit a URL for an XML schema definition file (.xsd), and to assign the URL to a control property.

Use the EditorAttribute attribute to associate the XsdSchemaFileEditor with a property. When the associated property is edited on the design surface, the designer host calls the EditValue method. The EditValue method uses the BuildUrl method, which in turn displays a user interface for selecting the URL, and then returns the URL that is selected by the user. The GetEditStyle method indicates the display style of the user interface.

Derive a class from the XsdSchemaFileEditor to define a custom editor for an XML schema URL property. For example, a derived class can override the EditValue method, and then call the BuildUrl method with a custom Filter or Caption value.

Legacy Code Example

The following code example demonstrates how to associate an instance of the XsdSchemaFileEditor class with a property that is contained within a custom control. When the control property is edited on the design surface, the XsdSchemaFileEditor class provides the user interface to select and edit an XML schema definition file name for the property value.

Code snippet is not found. Confirm that the code snippet name 'WebDesigner.XsdSchemaFileEditor' is correct.

.NET Framework
Available since 2.0

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
© 2015 Microsoft