XslUrlEditor 类

定义

为选择指示 XSL 文件位置的 URL 提供用户界面。Provides a user interface for selecting an URL that indicates the location of an XSL file.

public ref class XslUrlEditor : System::Web::UI::Design::UrlEditor
public class XslUrlEditor : System.Web.UI.Design.UrlEditor
type XslUrlEditor = class
    inherit UrlEditor
Public Class XslUrlEditor
Inherits UrlEditor
继承

示例

public:
   property String^ XslFileURL 
   {
      [EditorAttribute(XslUrlEditor::typeid,UITypeEditor::typeid)]
      String^ get()
      {
         return xslURL;
      }

      [EditorAttribute(XslUrlEditor::typeid,UITypeEditor::typeid)]
      void set( String^ value )
      {
         xslURL = value;
      }
   }

private:
   String^ xslURL;
[EditorAttribute(typeof(System.Web.UI.Design.XslUrlEditor), typeof(UITypeEditor))]
public string XslFileURL
{
    get
    {
        return xslURL;
    }
    set
    {
        xslURL = value;
    }
}

private string xslURL;
<EditorAttribute(GetType(System.Web.UI.Design.XslUrlEditor), GetType(UITypeEditor))> _
Public Property XslFileURL() As String
    Get
        Return xslURL
    End Get
    Set(ByVal Value As String)
        xslURL = Value
    End Set
End Property

Private xslURL As String

注解

XslUrlEditor是一个UITypeEditor , 它提供用于选择指示 XSL 文件位置的 URL 的对话框。XslUrlEditor is a UITypeEditor that provides a dialog for selecting a URL that indicates the location of an XSL file.

构造函数

XslUrlEditor()

初始化 XslUrlEditor 类的实例。Initializes an instance of the XslUrlEditor class.

属性

Caption

获取要在选择对话窗口中显示的标题。Gets the caption to display on the selection dialog window.

Filter

获取编辑器的文件名筛选器字符串。Gets the file name filter string for the editor. 这用来确定在对话框的文件列表中显示的项。This is used to determine the items that appear in the file list of the dialog box.

IsDropDownResizable

获取一个值,指示是否应该由用户调整下拉编辑器的大小。Gets a value indicating whether drop-down editors should be resizable by the user.

(继承自 UITypeEditor)
Options

获取 URL 生成器要使用的选项。Gets the options for the URL builder to use.

方法

EditValue(IServiceProvider, Object)

使用 GetEditStyle() 方法所指示的编辑器样式编辑指定对象的值。Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

(继承自 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

使用 GetEditStyle(ITypeDescriptorContext) 方法所提供的编辑器样式编辑指定对象的值。Edits the value of the specified object using the editor style provided by the GetEditStyle(ITypeDescriptorContext) method.

(继承自 UrlEditor)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEditStyle()

获取由 EditValue(IServiceProvider, Object) 方法使用的编辑器样式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

(继承自 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

获取 EditValue(ITypeDescriptorContext, IServiceProvider, Object) 方法的编辑样式。Gets the editing style of the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method.

(继承自 UrlEditor)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPaintValueSupported()

指示该编辑器是否支持绘制对象值的表示形式。Indicates whether this editor supports painting a representation of an object's value.

(继承自 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

指示指定的上下文是否支持在指定的上下文内绘制对象值的表示形式。Indicates whether the specified context supports painting a representation of an object's value within the specified context.

(继承自 UITypeEditor)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
PaintValue(Object, Graphics, Rectangle)

将指定对象的值的表示形式绘制到指定的画布上。Paints a representation of the value of the specified object to the specified canvas.

(继承自 UITypeEditor)
PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs 绘制某个对象的值的表示形式。Paints a representation of the value of an object using the specified PaintValueEventArgs.

(继承自 UITypeEditor)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅