winform为本地化资源添加tag属性

示例:

        /// <summary>
        ///   查找 System.Drawing.Bitmap 类型的本地化资源。
        /// </summary>
        internal static System.Drawing.Bitmap HorizontalOn {
            get {
                object obj = ResourceManager.GetObject("HorizontalOn", resourceCulture);
                System.Drawing.Bitmap bitmap = (System.Drawing.Bitmap)obj;
                bitmap.Tag = "lblHorOn";
                return (bitmap);
            } 
        }

  

posted on 2017-10-14 14:37  印子  阅读(335)  评论(0编辑  收藏  举报

导航