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)); }
// 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(""); }