本文整理汇总了C#中System.ComponentModel.MaskedTextProvider.FindEditPositionInRange方法的典型用法代码示例。如果您正苦于以下问题:C# MaskedTextProvider.FindEditPositionInRange方法的具体用法?C# MaskedTextProvider.FindEditPositionInRange怎么用?C# MaskedTextProvider.FindEditPositionInRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ComponentModel.MaskedTextProvider
的用法示例。
在下文中一共展示了MaskedTextProvider.FindEditPositionInRange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindEditPositionInRangeTest1
public void FindEditPositionInRangeTest1 ()
{
MaskedTextProvider mtp;
int Int32_out = 0;
MaskedTextResultHint MaskedTextResultHint_out = MaskedTextResultHint.Unknown;
mtp = new MaskedTextProvider (@"abc");
mtp.Add (@"a");
mtp.Add ('\x61');
mtp.Add ('\x61', out Int32_out, out MaskedTextResultHint_out);
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 0, false), "#0");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 0, true), "#1");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 1, false), "#2");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 1, true), "#3");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 2, false), "#4");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 2, true), "#5");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 3, false), "#6");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 3, true), "#7");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 4, false), "#8");
Assert.AreEqual (0, mtp.FindEditPositionInRange (0, 4, true), "#9");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 0, false), "#10");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 0, true), "#11");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 1, false), "#12");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 1, true), "#13");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 2, false), "#14");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 2, true), "#15");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 3, false), "#16");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 3, true), "#17");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 4, false), "#18");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (1, 4, true), "#19");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 0, false), "#20");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 0, true), "#21");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 1, false), "#22");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 1, true), "#23");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 2, false), "#24");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 2, true), "#25");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 3, false), "#26");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 3, true), "#27");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 4, false), "#28");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (2, 4, true), "#29");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 0, false), "#30");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 0, true), "#31");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 1, false), "#32");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 1, true), "#33");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 2, false), "#34");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 2, true), "#35");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 3, false), "#36");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 3, true), "#37");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 4, false), "#38");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (3, 4, true), "#39");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 0, false), "#40");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 0, true), "#41");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 1, false), "#42");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 1, true), "#43");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 2, false), "#44");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 2, true), "#45");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 3, false), "#46");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 3, true), "#47");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 4, false), "#48");
Assert.AreEqual (-1, mtp.FindEditPositionInRange (4, 4, true), "#49");
MaskedTextProviderTest.AssertProperties (mtp, "FindEditPositionInRangeTest", 50, true, false, 1, 0, CultureInfo.GetCultureInfo ("es-ES"), 1, true, false, false, 0, 3, @"abc", true, true, '\x0', '\x5F', true, true, true, @"abc", @"abc", @"abc", @"abc", @"a", @"abc", @"a");
}