The result of judicious design, all dynamic method calls get routed through invokeMethod and property access through getProperty and setProperty.
明智设计的结果是:通过invokeMethod调用所有的动态方法,通过getProperty和setProperty访问属性。
The getProperty method returns an instance of the class Object, so you must cast the result into the appropriate type, which, in this case, is a string.
getProperty 方法返回 Object类的一个实例,因此您必须把结果转换成合适的类型,在本例中是 string 型。
Finally, I use GetProperty to get information about a specified property of the control and then get the value of the control property using the GetValue method.
最后使用GetProperty获取控件的指定属性的信息,并使用GetValue方法获取控件属性值。
应用推荐