• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WebControls.ListViewPoker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MonoTests.System.Web.UI.WebControls.ListViewPoker的典型用法代码示例。如果您正苦于以下问题:C# ListViewPoker类的具体用法?C# ListViewPoker怎么用?C# ListViewPoker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ListViewPoker类属于MonoTests.System.Web.UI.WebControls命名空间,在下文中一共展示了ListViewPoker类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ListView_AccessKey

		public void ListView_AccessKey ()
		{
			var lvp = new ListViewPoker ();
			lvp.AccessKey = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例2: ListView_FindPlaceholder

		public void ListView_FindPlaceholder ()
		{
			var lvp = new ListViewPoker ();
			Control control;

			control = lvp.DoFindPlaceholder ("somePlaceholder", lvp);
			Assert.IsTrue (control == null, "#A1");

			control = lvp.DoFindPlaceholder (null, lvp);
			Assert.IsTrue (control == null, "#A2");
			
			control = lvp.DoFindPlaceholder (String.Empty, lvp);
			Assert.IsTrue (control == null, "#A3");

			lvp.LayoutTemplate = new TestTemplate ();
			lvp.DoEnsureLayoutTemplate ();
			control = lvp.DoFindPlaceholder ("TestTemplateControl", lvp);
			Assert.IsFalse (control == null, "#B1");
			Assert.AreEqual ("TestTemplateControl", control.ID, "#B2");
			control = lvp.DoFindPlaceholder ("DoesNotExist", lvp);
			Assert.IsTrue (control == null, "#B3");
			
			lvp = new ListViewPoker ();
			lvp.LayoutTemplate = new DeepTestTemplate ();
			lvp.DoEnsureLayoutTemplate ();
			control = lvp.DoFindPlaceholder ("DeepTestTemplateControl", lvp);
			Assert.IsFalse (control == null, "#C1");
			Assert.AreEqual ("DeepTestTemplateControl", control.ID, "#C2");
			control = lvp.DoFindPlaceholder ("DoesNotExist", lvp);
			Assert.IsTrue (control == null, "#C3");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:31,代码来源:ListViewTest.cs


示例3: DoInstantiateContainerNullCall

		void DoInstantiateContainerNullCall (ListViewItemTemplate whichTemplate)
		{
			var lvp = new ListViewPoker ();
			var template = new TestTemplate ();

			switch (whichTemplate) {
				case ListViewItemTemplate.EmptyData:
					lvp.EmptyDataTemplate = template;
					lvp.DoInstantiateEmptyDataTemplate (null);
					break;

				case ListViewItemTemplate.EmptyItem:
					lvp.EmptyItemTemplate = template;
					lvp.DoInstantiateEmptyItemTemplate (null);
					break;

				case ListViewItemTemplate.GroupSeparator:
					lvp.GroupSeparatorTemplate = template;
					lvp.DoInstantiateGroupSeparatorTemplate (null);
					break;

				case ListViewItemTemplate.Group:
					lvp.GroupTemplate = template;
					lvp.DoInstantiateGroupTemplate (null);
					break;

				case ListViewItemTemplate.InsertItem:
					lvp.InsertItemTemplate = template;
					lvp.DoInstantiateInsertItemTemplate (null);
					break;

				case ListViewItemTemplate.ItemSeparator:
					lvp.ItemSeparatorTemplate = template;
					lvp.DoInstantiateItemSeparatorTemplate (null);
					break;
					
				case ListViewItemTemplate.Item:
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.EditItem:
					lvp.EditItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.AlternatingItem:
					lvp.AlternatingItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.SelectedItem:
					lvp.SelectedItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;

				default:
					throw new NotSupportedException ("Unsupported ListView item type.");
			}
		}
开发者ID:Profit0004,项目名称:mono,代码行数:63,代码来源:ListViewTest.cs


示例4: ListView_CreateInsertItem_NoInsertItemTemplate

		public void ListView_CreateInsertItem_NoInsertItemTemplate ()
		{
			var lvp = new ListViewPoker ();
			ListViewItem item = lvp.DoCreateInsertItem ();
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例5: ListView_CreateItem

		public void ListView_CreateItem ()
		{
			var events = new EventRecorder ();
			var lvp = new ListViewPoker (events);
			ListViewItem item;

			item = lvp.DoCreateItem (ListViewItemType.DataItem);
			Assert.IsFalse (item == null, "#A1");
			Assert.AreEqual (ListViewItemType.DataItem, item.ItemType, "#A2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#A3");

			Assert.AreEqual (0, events.Count, "#B1");
			
			item = lvp.DoCreateItem (ListViewItemType.InsertItem);
			Assert.IsFalse (item == null, "#C1");
			Assert.AreEqual (ListViewItemType.InsertItem, item.ItemType, "#C2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#C3");

			item = lvp.DoCreateItem (ListViewItemType.EmptyItem);
			Assert.IsFalse (item == null, "#D1");
			Assert.AreEqual (ListViewItemType.EmptyItem, item.ItemType, "#D2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#D3");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:23,代码来源:ListViewTest.cs


示例6: ListView_CreateControlStyle

		public void ListView_CreateControlStyle ()
		{
			var lvp = new ListViewPoker ();
			lvp.DoCreateControlStyle ();
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例7: ListView_CreateDataSourceSelectArguments

		public void ListView_CreateDataSourceSelectArguments ()
		{
			var lvp = new ListViewPoker ();
			DataSourceSelectArguments args = lvp.DoCreateDataSourceSelectArguments ();

			Assert.IsTrue (args != null, "#A1");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:7,代码来源:ListViewTest.cs


示例8: ListView_Height

		public void ListView_Height ()
		{
			var lvp = new ListViewPoker ();
			lvp.Height = Unit.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例9: ListView_ToolTip

		public void ListView_ToolTip ()
		{
			var lvp = new ListViewPoker ();
			lvp.ToolTip = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例10: ListView_Font

		public void ListView_Font ()
		{
			var lvp = new ListViewPoker ();
			lvp.Font.Bold = true;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例11: ListView_ForeColor

		public void ListView_ForeColor ()
		{
			var lvp = new ListViewPoker ();
			lvp.ForeColor = Color.White;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例12: ListView_CssClass

		public void ListView_CssClass ()
		{
			var lvp = new ListViewPoker ();
			lvp.CssClass = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例13: ListView_BorderStyle

		public void ListView_BorderStyle ()
		{
			var lvp = new ListViewPoker ();
			lvp.BorderStyle = BorderStyle.NotSet;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例14: ListView_BorderColor

		public void ListView_BorderColor ()
		{
			var lvp = new ListViewPoker ();
			lvp.BorderColor = Color.White;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例15: ListView_AddControlToContainer_NullContainer

		public void ListView_AddControlToContainer_NullContainer ()
		{
			var lvp = new ListViewPoker ();
			Control container = new Control ();
			Control control = new Control ();
			control.ID = "TestControl";
			
			lvp.DoAddControlToContainer (control, null, 0);
			Assert.AreEqual (0, container.Controls.Count, "#A2");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:10,代码来源:ListViewTest.cs


示例16: ListView_Width

		public void ListView_Width ()
		{
			var lvp = new ListViewPoker ();
			lvp.Width = Unit.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例17: ListView_AddControlToContainer

		public void ListView_AddControlToContainer ()
		{
			var lvp = new ListViewPoker ();
			Control container = new Control ();
			Control control = new Control ();
			control.ID = "TestControl";

			lvp.DoAddControlToContainer (control, container, 0);
			Assert.AreEqual (typeof (Control), container.Controls [0].GetType (), "#A1");
			Assert.AreEqual ("TestControl", container.Controls [0].ID, "#A2");

			container = new HtmlTable ();
			lvp.DoAddControlToContainer (control, container, 0);
			Assert.AreEqual ("System.Web.UI.WebControls.ListViewTableRow", container.Controls [0].GetType ().ToString (), "#B1");
			Assert.AreEqual ("TestControl", container.Controls [0].Controls [0].ID, "#B2");

			container = new HtmlTableRow ();
			lvp.DoAddControlToContainer (control, container, 0);
			Assert.AreEqual ("System.Web.UI.WebControls.ListViewTableCell", container.Controls [0].GetType ().ToString (), "#C1");
			Assert.AreEqual ("TestControl", container.Controls [0].Controls [0].ID, "#C2");

			container = new Control ();
			lvp.DoAddControlToContainer (control, container, -1);
		}
开发者ID:Profit0004,项目名称:mono,代码行数:24,代码来源:ListViewTest.cs


示例18: ListView_EditIndex_SetInvalid

		public void ListView_EditIndex_SetInvalid ()
		{
			var lvp = new ListViewPoker ();
			lvp.EditIndex = -2;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs


示例19: ListView_CreateDataItem

		public void ListView_CreateDataItem ()
		{
			var lvp = new ListViewPoker ();
			ListViewDataItem lvdi = lvp.DoCreateDataItem (0, 0);

			Assert.IsTrue (lvdi != null, "#A1");
			Assert.AreEqual (null, lvdi.DataItem, "#A2");
			Assert.AreEqual (0, lvdi.DataItemIndex, "#A3");
			Assert.AreEqual (0, lvdi.DisplayIndex, "#A4");
			Assert.AreEqual (ListViewItemType.DataItem, lvdi.ItemType, "#A5");

			lvdi = lvp.DoCreateDataItem (-1, -1);
			Assert.AreEqual (-1, lvdi.DataItemIndex, "#A6");
			Assert.AreEqual (-1, lvdi.DisplayIndex, "#A7");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:15,代码来源:ListViewTest.cs


示例20: ListView_SelectedIndex_SetInvalid

		public void ListView_SelectedIndex_SetInvalid ()
		{
			var lvp = new ListViewPoker ();
			lvp.SelectedIndex = -2;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs



注:本文中的MonoTests.System.Web.UI.WebControls.ListViewPoker类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WebControls.ObjectDataSourcePoker类代码示例发布时间:2022-05-26
下一篇:
C# CSharp.LocalVariable类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap