当前位置: 首页>>代码示例>>C#>>正文


C# Poker.CallModifiedOuterTableStylePropertyName方法代码示例

本文整理汇总了C#中Poker.CallModifiedOuterTableStylePropertyName方法的典型用法代码示例。如果您正苦于以下问题:C# Poker.CallModifiedOuterTableStylePropertyName方法的具体用法?C# Poker.CallModifiedOuterTableStylePropertyName怎么用?C# Poker.CallModifiedOuterTableStylePropertyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Poker的用法示例。


在下文中一共展示了Poker.CallModifiedOuterTableStylePropertyName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ModifiedOuterTableStylePropertyName

		public void ModifiedOuterTableStylePropertyName ()
		{
			var fv = new Poker ();
			string props;

			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.AreEqual (String.Empty, props, "#A1");

			fv.BackImageUrl = "http://example.com/image.png";
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A2-1");
			Assert.AreEqual ("BackImageUrl", props, "#A2-2");

			fv = new Poker ();
			fv.CellPadding = 10;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A3-1");
			Assert.AreEqual ("CellPadding", props, "#A3-2");

			fv = new Poker ();
			fv.CellSpacing = 10;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A4-1");
			Assert.AreEqual ("CellSpacing", props, "#A4-2");

			fv = new Poker ();
			fv.GridLines = GridLines.Both;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A5-1");
			Assert.AreEqual ("GridLines", props, "#A5-2");

			fv = new Poker ();
			fv.HorizontalAlign = HorizontalAlign.Justify;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A6-1");
			Assert.AreEqual ("HorizontalAlign", props, "#A6-2");

			fv = new Poker ();
			fv.Font.Bold = true;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#A6-1");
			Assert.AreEqual ("Font", props, "#A6-2");

			// Just one property is reported at a time
			fv = new Poker ();
			fv.BackImageUrl = "http://example.com/image.png";
			fv.CellPadding = 10;
			props = fv.CallModifiedOuterTableStylePropertyName ();
			Assert.IsNotNull (props, "#B1-1");
			Assert.AreEqual ("BackImageUrl", props, "#B1-2");
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:51,代码来源:FormViewTest.cs


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