/// <summary> /// System.Drawing.Image でアイコンを設定します。 /// </summary> /// <param name="value">設定するアイコンを指定します。</param> public void SetImage(Gdi::Image value) { //if(type==IconType.Image&&img==value)return; this.type = IconType.Image; img = value; icon = null; list = null; }
//============================================================ // 画像の設定 //============================================================ /// <summary> /// System.Drawing.Icon でアイコンを設定します。 /// </summary> /// <param name="value">設定するアイコンを指定します。</param> public void SetIcon(Gdi::Icon value) { //if(type==IconType.Icon&&icon==value)return; this.type = IconType.Icon; icon = value; img = null; list = null; }
/// <summary> /// ImageList に登録されている画像をアイコンとして使用します。 /// </summary> /// <param name="list">使用する画像を含んでいる ImageList を指定します。</param> /// <param name="index">使用する画像の ImageList の中に於ける番号を指定します。</param> public void SetImage(Forms::ImageList list, int index) { //if(this.type==IconType.ImageList&&this.list==list&&this.index=index)return; this.type = IconType.ImageList; this.list = list; this.index = index; this.icon = null; this.img = null; }