語言

NamedImage.Name 屬性

定義

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

public:
 virtual property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(false)]
public override string Name { get; set; }
[<System.ComponentModel.Bindable(false)>]
member this.Name : string with get, set
Public Overrides Property Name As String

屬性值

一個string代表儲存在 NamedImage中物件唯一名稱NamedImagesCollection的值。

屬性

備註

屬性識別 NamedImage 儲存在 NamedImagesCollection中的物件。 此名稱必須是唯一的,否則當物件加入集合時會拋出例外。

使用 NamedImage 物件來生成動態影像,然後可以指派到圖表影像屬性。

這個 Name 屬性值用於設定圖表影像屬性給物件 NamedImage 。

當控制項的某個影像屬性 Chart 透過指定 string 值設定時, Images 會先檢查集合屬性(type NamedImagesCollection 為)是否存在指定名稱的影像。 若找到匹配 NamedImage 的物件,則使用此影像。 若找不到匹配 NamedImage 物件,該 string 值會被視為網址、影像資源名稱或影像路徑。

適用於