Share via


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 对象用于动态创建的图像,然后将其分配给图表图像属性。

将图表图像属性设置为 NamedImage 对象时,将使用此值Name

通过指定string值设置控件的Chart某个图像属性时,Images首先检查集合属性(类型NamedImagesCollection为 )以确定是否存在具有指定名称的图像。 如果找到匹配 NamedImage 的对象,则使用此图像。 如果未找到匹配 NamedImage 的对象,则会将 string 该值视为 URL、图像资源名称或图像路径。

适用于