您的位置:首页 > 其它

汉字转拼音缩写的函数以及其他函数

2005-10-12 14:12 489 查看
public static void ClearAllContent(System.Web.UI.Control page)
public string GetPYString(string str)

public string GetPYChar(string c)
//作用:把ListBox中的全部内容转换成一个字符串,各个字段间用,分隔
//
//参数:Lists,需要转换的ListBox.items
//
//返回值:转换好的字符串
//
public string ListToString(ListItemCollection Lists)

//
//作用:把string中的全部内容转换成ListItemCollection从而绑定到Listbox
//
//参数:str,需要转换的字符串
//
//返回值:转换好的ListItemCollection
//
public ListItemCollection StringToList(string str)

//
//作用:把源ListBox中的选中数据移动到目标ListBox
//
//参数:FromLists,源ListBox
//
public static void MoveListBoxSelectedItem
(ListItemCollection FromLists,ListItemCollection ToLists)

//
//作用:把源ListBox中的全部数据移动到目标ListBox
//
//参数:FromLists,源ListBox
//
public static void MoveListBoxAllItem
(ListItemCollection FromLists,ListItemCollection ToLists)

//
//作用:输入年月返回月份的天数的集合
//
//参数:YYYY年,MM月
//
//返回值:本月的天数的ArrayList
//
public static ArrayList GetDaysInMonth(int YYYY,int MM)

//
//作用:输入选中天数的集合,返回其中的最小和最大的天数
//
//参数:dates,把Calendar.SelectedDates传入即可
//
//返回值:两个数值的ArrayList,第一个为最小天数,第二个为最大天数
//
public static ArrayList GetMinMaxDate(SelectedDatesCollection dates)

调用函数是碰到ListItemCollection 使用ListBox.Items做参数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: