C#取得Excel中控件的值

取值:
(bool)obj.Object.GetType().InvokeMember("Value",
                        BindingFlags.Default | BindingFlags.GetProperty, null, objOther.Object, null);

设值:
obj.Object.GetType().InvokeMember("Value",
                        BindingFlags.Default | BindingFlags.SetProperty, null,
                        obj.Object, new object[] { true });

posted on 2009-08-02 14:07  samirL  阅读(426)  评论(0编辑  收藏  举报

导航