NamedImage 類別

定義

表示儲存於 NamedImagesCollection 的具名影像。

public ref class NamedImage : System::Web::UI::DataVisualization::Charting::ChartNamedElement
public class NamedImage : System.Web.UI.DataVisualization.Charting.ChartNamedElement
type NamedImage = class
    inherit ChartNamedElement
Public Class NamedImage
Inherits ChartNamedElement
繼承

備註

類別 NamedImage 代表具有唯一名稱的影像,而且在使用特定繪圖常式動態建立影像時很有用,然後指定為控制項其中一個影像屬性的 Chart 影像。

屬性 Name 會決定物件的唯一 NamedImage 名稱。 屬性 Image 會決定其相關聯的影像,它可以是衍生自 .NET Framework Image 類別的任何物件。

指定值來 string 設定控制項的 Chart 其中一個影像屬性時,會 Images 先檢查集合屬性,以判斷具有指定名稱的影像是否存在。 如果找到相符 NamedImage 的物件,則會使用此影像。 如果找不到相符 NamedImage 的物件,該值 string 會被視為 URL、影像資源名稱或影像路徑。

建構函式

NamedImage()

初始化 NamedImage 類別的新執行個體。

NamedImage(String, Image)

使用具名影像的指定名稱和其關聯的影像,初始化 NamedImage 類別的新執行個體。

屬性

Image

取得或設定 NamedImage 物件的影像。

Name

取得或設定 NamedImage 物件的唯一名稱。

Tag

取得或設定與這個圖表項目關聯的物件。

(繼承來源 ChartElement)

方法

Dispose()

釋放 ChartElement 使用的資源。

(繼承來源 ChartElement)
Dispose(Boolean)

釋放 Unmanaged 和 Managed 資源 (後者為選擇性釋放)。

Equals(Object)

判斷指定的 Object 是否等於目前的 ChartElement

(繼承來源 ChartElement)
GetHashCode()

傳回特定型別的雜湊函式。

(繼承來源 ChartElement)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回表示目前 Object 的字串。

(繼承來源 ChartElement)

適用於