本文整理匯總了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");
}