示例#1
0
 private Size GetCtrlSize()
 {
     if (this._holdctrl != null)
     {
         object propertyValue = ReflectHelper.GetPropertyValue(this._holdctrl, "Size");
         if (propertyValue != null)
         {
             return((Size)propertyValue);
         }
     }
     return(new Size(0, 0));
 }
示例#2
0
 // Methods
 public static string GetCtrlTitle(Control _holdctrl)
 {
     if (_holdctrl != null)
     {
         object propertyValue = ReflectHelper.GetPropertyValue(_holdctrl, "Title");
         if (propertyValue != null)
         {
             return((string)propertyValue);
         }
         propertyValue = ReflectHelper.GetPropertyValue(_holdctrl, "Text");
         if (propertyValue != null)
         {
             return((string)propertyValue);
         }
     }
     return("");
 }