public string getShortTitle(object obj)
{
string shorttitle = "";
if (obj.ToString().Length > 16)
{
shorttitle = obj.ToString().Substring(0, 16) + "...";
}
else
{
shorttitle = obj.ToString();
}
return shorttitle;
}
public string getShortTitle(object obj)
{
string shorttitle = "";
if (obj.ToString().Length > 16)
{
shorttitle = obj.ToString().Substring(0, 16) + "...";
}
else
{
shorttitle = obj.ToString();
}
return shorttitle;
}
转载于:https://www.cnblogs.com/Cuiy/archive/2013/05/24/jiequzifuchuan.html