本文整理汇总了C#中System.ComponentModel.MaskedTextProvider.FindAssignedEditPositionFrom方法的典型用法代码示例。如果您正苦于以下问题:C# MaskedTextProvider.FindAssignedEditPositionFrom方法的具体用法?C# MaskedTextProvider.FindAssignedEditPositionFrom怎么用?C# MaskedTextProvider.FindAssignedEditPositionFrom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ComponentModel.MaskedTextProvider
的用法示例。
在下文中一共展示了MaskedTextProvider.FindAssignedEditPositionFrom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindAssignedEditPositionFromTest1
public void FindAssignedEditPositionFromTest1 ()
{
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.FindAssignedEditPositionFrom (0, false), "#0");
Assert.AreEqual (0, mtp.FindAssignedEditPositionFrom (0, true), "#1");
Assert.AreEqual (0, mtp.FindAssignedEditPositionFrom (1, false), "#2");
Assert.AreEqual (-1, mtp.FindAssignedEditPositionFrom (1, true), "#3");
Assert.AreEqual (0, mtp.FindAssignedEditPositionFrom (2, false), "#4");
Assert.AreEqual (-1, mtp.FindAssignedEditPositionFrom (2, true), "#5");
Assert.AreEqual (0, mtp.FindAssignedEditPositionFrom (3, false), "#6");
Assert.AreEqual (-1, mtp.FindAssignedEditPositionFrom (3, true), "#7");
Assert.AreEqual (0, mtp.FindAssignedEditPositionFrom (4, false), "#8");
Assert.AreEqual (-1, mtp.FindAssignedEditPositionFrom (4, true), "#9");
MaskedTextProviderTest.AssertProperties (mtp, "FindAssignedEditPositionFromTest", 10, 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");
}