53 references to BeforeFirst
PresentationCore (53)
MS\Internal\Ink\EllipticalNodeOperations.cs (12)
406result.BeginFIndex = beginNode.IsEmpty ? StrokeFIndices.BeforeFirst : 1; 415result.BeginFIndex = StrokeFIndices.BeforeFirst; 433if (!DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 517result.BeginFIndex = StrokeFIndices.BeforeFirst; 520if (DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 527if ((beginNode.IsEmpty == false) && (!isHit || !DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst))) 534if (!DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 536result.BeginFIndex = StrokeFIndices.BeforeFirst; 577else if ((DoubleUtil.AreClose(result.EndFIndex, StrokeFIndices.BeforeFirst)) && (!DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.AfterLast))) 581else if ((DoubleUtil.AreClose(result.BeginFIndex,StrokeFIndices.AfterLast)) && (!DoubleUtil.AreClose(result.EndFIndex, StrokeFIndices.BeforeFirst))) 583result.BeginFIndex = StrokeFIndices.BeforeFirst; 810if (!DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst))
MS\Internal\Ink\ErasingStroke.cs (2)
226if (DoubleUtil.AreClose(eraseAt[index].BeginFIndex, StrokeFIndices.BeforeFirst)) 248StrokeFIndices.BeforeFirst, segment.EndFIndex));
MS\Internal\Ink\Lasso.cs (8)
358if (DoubleUtil.AreClose(fIndex, StrokeFIndices.BeforeFirst)) 390si.HitBegin = StrokeFIndices.BeforeFirst; 391si.InBegin = StrokeFIndices.BeforeFirst; 406si.InEnd = StrokeFIndices.BeforeFirst; 420if (DoubleUtil.AreClose(si.InEnd, StrokeFIndices.BeforeFirst)) 422System.Diagnostics.Debug.Assert(DoubleUtil.AreClose(si.InBegin, StrokeFIndices.BeforeFirst)); 436si.InEnd = StrokeFIndices.BeforeFirst; 905private static readonly double NoIntersection = StrokeFIndices.BeforeFirst;
MS\Internal\Ink\StrokeFIndices.cs (4)
18private static readonly StrokeFIndices s_empty = new StrokeFIndices(AfterLast, BeforeFirst); 19private static readonly StrokeFIndices s_full = new StrokeFIndices(BeforeFirst, AfterLast); 132if (DoubleUtil.AreClose(fIndex, StrokeFIndices.BeforeFirst)) 161internal bool IsFull { get { return ((DoubleUtil.AreClose(_beginFIndex, BeforeFirst)) && (DoubleUtil.AreClose(_endFIndex,AfterLast))); } }
MS\Internal\Ink\StrokeIntersection.cs (1)
26internal static double BeforeFirst { get { return StrokeFIndices.BeforeFirst; } }
MS\Internal\Ink\StrokeNode.cs (3)
921if (!DoubleUtil.AreClose(fragment.BeginFIndex, StrokeFIndices.BeforeFirst)) 951if (DoubleUtil.AreClose(fragment.BeginFIndex, StrokeFIndices.BeforeFirst)) 954fragment.BeginFIndex = (_index == 0 ? StrokeFIndices.BeforeFirst:_index - 1);
MS\Internal\Ink\StrokeNodeOperations.cs (17)
486result.BeginFIndex = StrokeFIndices.BeforeFirst; 494result.BeginFIndex = StrokeFIndices.BeforeFirst; 496else if (result.BeginFIndex != StrokeFIndices.BeforeFirst) 516if (result.BeginFIndex != StrokeFIndices.BeforeFirst) 613if (!DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 616if (findex != StrokeFIndices.BeforeFirst) 630if (findex != StrokeFIndices.BeforeFirst) 644if (!DoubleUtil.AreClose(result.EndFIndex, StrokeFIndices.BeforeFirst)) 646result.BeginFIndex = StrokeFIndices.BeforeFirst; 649else if (DoubleUtil.AreClose(result.EndFIndex, StrokeFIndices.BeforeFirst)) 1186if (isHit && DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 1231result.BeginFIndex = StrokeFIndices.BeforeFirst; 1242result.BeginFIndex = StrokeFIndices.BeforeFirst; 1245if (DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst)) 1266double findex = StrokeFIndices.BeforeFirst; 1286findex = StrokeFIndices.BeforeFirst; 1308DoubleUtil.AreClose(result.BeginFIndex, StrokeFIndices.BeforeFirst) && result.EndFIndex < 0.0f ||
System\Windows\Ink\Stroke.cs (6)
808double beginFIndex = StrokeFIndices.BeforeFirst; 809if (cutAt[0].BeginFIndex == StrokeFIndices.BeforeFirst) 855(DoubleUtil.AreClose(StrokeFIndices.BeforeFirst, beginFIndex)) 892if (!DoubleUtil.AreClose(beginFIndex, StrokeFIndices.BeforeFirst)) 923if ((!DoubleUtil.AreClose(beginFIndex, StrokeFIndices.BeforeFirst)) && !DoubleUtil.AreClose(beginIndex, beginFIndex)) 1006double current = StrokeFIndices.BeforeFirst;