XmlFileEditor 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供使用者介面,以便使用標準 OpenFileDialog 方塊選取 XML 檔案。
public ref class XmlFileEditor : System::Drawing::Design::UITypeEditor
C#
public class XmlFileEditor : System.Drawing.Design.UITypeEditor
type XmlFileEditor = class
inherit UITypeEditor
Public Class XmlFileEditor
Inherits UITypeEditor
- 繼承
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_;
C#
[EditorAttribute(typeof(System.Web.UI.Design.XmlFileEditor), typeof(UITypeEditor))]
public string XmlFile
{
get
{
return xml_;
}
set
{
xml_ = value;
}
}
private string xml_;
<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
XmlFileEditor UITypeEditor是 ,提供對話方塊來選取檔案名屬性的 XML 檔案。
Xml |
初始化 XmlFileEditor 類別的新執行個體。 |
Is |
取得值,表示使用者是否能夠調整下拉式編輯器的大小。 (繼承來源 UITypeEditor) |
Edit |
使用由 GetEditStyle() 方法指示的編輯器樣式,來編輯指定物件的值。 (繼承來源 UITypeEditor) |
Edit |
使用指定服務提供者和內容,編輯指定物件的值。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。 (繼承來源 UITypeEditor) |
Get |
使用指定的 ITypeDescriptorContext 物件,取得與這個編輯器關聯的編輯樣式。 |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
指出這個編輯器是否支援繪製物件值的表示。 (繼承來源 UITypeEditor) |
Get |
指出指定的內容是否支援在指定的內容中繪製物件值的表示。 (繼承來源 UITypeEditor) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Paint |
將指定物件的表示值繪製到指定的畫布上。 (繼承來源 UITypeEditor) |
Paint |
使用指定的 PaintValueEventArgs 來繪製物件值的表示。 (繼承來源 UITypeEditor) |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |