Implemented interface member:
method
Add
System.Collections.Generic.ICollection<T>.Add(T)
218 references to Add
PresentationCore (22)
Core\CSharp\System\Windows\Media\ArcSegment.cs (3)
84
figure.Segments.
Add
(this);
121
figure.Segments.
Add
(new BezierSegment(
131
figure.Segments.
Add
(new LineSegment(points[0], isStroked, isSmoothJoin));
Core\CSharp\System\Windows\Media\BezierSegment.cs (2)
76
figure.Segments.
Add
(this);
88
figure.Segments.
Add
(new BezierSegment(pt1, pt2, pt3, IsStroked, IsSmoothJoin));
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegmentFigureLogic.cs (2)
93
figure.Segments.
Add
(this);
108
figure.Segments.
Add
(new PolyBezierSegment(copy, IsStroked, IsSmoothJoin));
Core\CSharp\System\Windows\Media\Generated\PolyLineSegmentFigureLogic.cs (2)
93
figure.Segments.
Add
(this);
108
figure.Segments.
Add
(new PolyLineSegment(copy, IsStroked, IsSmoothJoin));
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegmentFigureLogic.cs (2)
93
figure.Segments.
Add
(this);
108
figure.Segments.
Add
(new PolyQuadraticBezierSegment(copy, IsStroked, IsSmoothJoin));
Core\CSharp\System\Windows\Media\LineSegment.cs (2)
74
figure.Segments.
Add
(this);
80
figure.Segments.
Add
(new LineSegment(pt, IsStroked, IsSmoothJoin));
Core\CSharp\System\Windows\Media\PathFigure.cs (1)
63
mySegments.
Add
(item);
Core\CSharp\System\Windows\Media\PathGeometry.cs (4)
523
figure.Segments.
Add
(polySeg);
528
figure.Segments.
Add
(new LineSegment(new Point(pPoints[pointIndex].X, pPoints[pointIndex].Y), fStroked, fSmooth));
554
figure.Segments.
Add
(polySeg);
560
figure.Segments.
Add
(new BezierSegment(
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (2)
297
_segments.
Add
(segment);
462
_segments.
Add
(segment);
Core\CSharp\System\Windows\Media\QuadraticBezierSegment.cs (2)
76
figure.Segments.
Add
(this);
85
figure.Segments.
Add
(new QuadraticBezierSegment(pt1, pt2, IsStroked, IsSmoothJoin));
PresentationFramework (22)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (4)
277
segments.
Add
(line);
281
segments.
Add
(line);
285
segments.
Add
(line);
289
segments.
Add
(line);
src\Framework\MS\Internal\Ink\PenCursorManager.cs (12)
490
path.Segments.
Add
(segment);
494
path.Segments.
Add
(segment);
498
path.Segments.
Add
(segment);
502
path.Segments.
Add
(segment);
514
path.Segments.
Add
(segment);
518
path.Segments.
Add
(segment);
522
path.Segments.
Add
(segment);
526
path.Segments.
Add
(segment);
539
path.Segments.
Add
(segment);
543
path.Segments.
Add
(segment);
547
path.Segments.
Add
(segment);
551
path.Segments.
Add
(segment);
src\Framework\System\windows\Documents\CaretElement.cs (2)
730
pathFigure.Segments.
Add
(new LineSegment(new Point(-bidiCaretIndicatorWidth, 0), true));
731
pathFigure.Segments.
Add
(new LineSegment(new Point(0, _height / BidiIndicatorHeightRatio), true));
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
288
pathFigure.Segments.
Add
(new LineSegment(pathPoint, true));
293
pathFigure.Segments.
Add
(new LineSegment(pathPoint, true));
src\Framework\System\Windows\Shapes\Polygon.cs (1)
145
pathFigure.Segments.
Add
(new PolyLineSegment(array, true));
src\Framework\System\Windows\Shapes\Polyline.cs (1)
145
pathFigure.Segments.
Add
(new PolyLineSegment(array, true));
PresentationFramework.Aero (44)
Microsoft\Windows\Themes\BulletChrome.cs (7)
884
figure.Segments.
Add
(new LineSegment(new Point(10.667, 3.167), true));
885
figure.Segments.
Add
(new LineSegment(new Point(7, 10.667), true));
886
figure.Segments.
Add
(new LineSegment(new Point(5.333, 10.667), true));
887
figure.Segments.
Add
(new LineSegment(new Point(3.333, 8.167), true));
888
figure.Segments.
Add
(new LineSegment(new Point(3.333, 6.833), true));
889
figure.Segments.
Add
(new LineSegment(new Point(4.833, 6.5), true));
890
figure.Segments.
Add
(new LineSegment(new Point(6, 8), true));
Microsoft\Windows\Themes\ButtonChrome.cs (5)
629
borderFigure.Segments.
Add
(new LineSegment(new Point(0.5, bounds.Bottom - 0.5), true));
630
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right - 2.5, bounds.Bottom - 0.5), true));
631
borderFigure.Segments.
Add
(new ArcSegment(new Point(bounds.Right - 0.5, bounds.Bottom - 2.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true));
632
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right - 0.5, bounds.Top + 2.5), true));
633
borderFigure.Segments.
Add
(new ArcSegment(new Point(bounds.Right - 2.5, bounds.Top + 0.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
330
arrowFigure.Segments.
Add
(line);
334
arrowFigure.Segments.
Add
(line);
342
arrowFigure.Segments.
Add
(line);
346
arrowFigure.Segments.
Add
(line);
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
489
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Left, bounds.Bottom), false));
490
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right, bounds.Bottom), false));
491
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right, bounds.Top), false));
500
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false));
501
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false));
502
borderFigure.Segments.
Add
(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Top + thickness.Top), false));
Microsoft\Windows\Themes\ScrollChrome.cs (8)
609
figure.Segments.
Add
(new LineSegment(new Point(0, 3.5), true));
610
figure.Segments.
Add
(new LineSegment(new Point(4.0, 7.0), true));
639
figure.Segments.
Add
(new LineSegment(new Point(4, 3.5), true));
640
figure.Segments.
Add
(new LineSegment(new Point(0.0, 7.0), true));
669
figure.Segments.
Add
(new LineSegment(new Point(3.5, 0), true));
670
figure.Segments.
Add
(new LineSegment(new Point(7.0, 4.0), true));
699
figure.Segments.
Add
(new LineSegment(new Point(3.5, 4.0), true));
700
figure.Segments.
Add
(new LineSegment(new Point(7.0, 0.0), true));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (14)
239
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true));
240
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true));
249
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true));
250
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true));
251
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true));
255
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true));
260
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true));
261
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true));
262
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true));
266
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true));
272
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true));
273
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true));
274
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true));
278
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true));
PresentationFramework.Classic (35)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (17)
882
figure.Segments.
Add
(new LineSegment(rect.TopRight, true));
883
figure.Segments.
Add
(new LineSegment(rect.BottomRight, true));
884
figure.Segments.
Add
(new LineSegment(rect.BottomLeft, true));
1086
figure.Segments.
Add
(new LineSegment(new Point(left, top + outerRadius), true)); //left side
1087
figure.Segments.
Add
(new ArcSegment(new Point(left + outerRadius, top), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top left rounded corner
1088
figure.Segments.
Add
(new LineSegment(new Point(right - outerRadius, top), true)); //top side
1089
figure.Segments.
Add
(new ArcSegment(new Point(right - outerRadius * 0.293, top + outerRadius * 0.293), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top right corner
1090
figure.Segments.
Add
(new LineSegment(new Point(right - 1.0 - innerRadius * 0.293, top + 1.0 + innerRadius * 0.293), true)); //inner top right corner
1091
figure.Segments.
Add
(new ArcSegment(new Point(right - outerRadius, top + 1.0), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true)); //inner top right rounded corner
1092
figure.Segments.
Add
(new LineSegment(new Point(left + outerRadius, top + 1.0), true)); //inner top side
1093
figure.Segments.
Add
(new ArcSegment(new Point(left + 1.0, top + outerRadius), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true));//inner top left rounder corner
1094
figure.Segments.
Add
(new LineSegment(new Point(left + 1.0, bottom), true)); //inner right side
1118
figure.Segments.
Add
(new LineSegment(new Point(right - 1.0, top + outerRadius), true)); //left side
1119
figure.Segments.
Add
(new ArcSegment(new Point(right - 1.0 - innerRadius * 0.293, top + 1.0 + innerRadius * 0.293), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true)); //inner left rounded corner
1120
figure.Segments.
Add
(new LineSegment(new Point(right - outerRadius * 0.293, top + outerRadius * 0.293), true)); //top right corner
1121
figure.Segments.
Add
(new ArcSegment(new Point(right, top + outerRadius), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top right corner
1122
figure.Segments.
Add
(new LineSegment(new Point(right, bottom), true)); //right side
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
161
arrowFigure.Segments.
Add
(line);
165
arrowFigure.Segments.
Add
(line);
173
arrowFigure.Segments.
Add
(line);
177
arrowFigure.Segments.
Add
(line);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (14)
239
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true));
240
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true));
249
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true));
250
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true));
251
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true));
255
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true));
260
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true));
261
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true));
262
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true));
266
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true));
272
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true));
273
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true));
274
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true));
278
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true));
PresentationFramework.Luna (45)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (8)
183
tabFigure.Segments.
Add
(line);
187
tabFigure.Segments.
Add
(arc);
191
tabFigure.Segments.
Add
(line);
195
tabFigure.Segments.
Add
(arc);
326
arrowFigure.Segments.
Add
(line);
330
arrowFigure.Segments.
Add
(line);
338
arrowFigure.Segments.
Add
(line);
342
arrowFigure.Segments.
Add
(line);
Microsoft\Windows\Themes\ScrollChrome.cs (20)
449
figure.Segments.
Add
(new LineSegment(new Point(0.0, 4.5), true));
450
figure.Segments.
Add
(new LineSegment(new Point(4.5, 9.0), true));
451
figure.Segments.
Add
(new LineSegment(new Point(6.0, 7.5), true));
452
figure.Segments.
Add
(new LineSegment(new Point(3.0, 4.5), true));
453
figure.Segments.
Add
(new LineSegment(new Point(6.0, 1.5), true));
482
figure.Segments.
Add
(new LineSegment(new Point(8.0, 4.5), true));
483
figure.Segments.
Add
(new LineSegment(new Point(3.5, 9.0), true));
484
figure.Segments.
Add
(new LineSegment(new Point(2.0, 7.5), true));
485
figure.Segments.
Add
(new LineSegment(new Point(5.0, 4.5), true));
486
figure.Segments.
Add
(new LineSegment(new Point(2.0, 1.5), true));
515
figure.Segments.
Add
(new LineSegment(new Point(4.5, 0.0), true));
516
figure.Segments.
Add
(new LineSegment(new Point(9.0, 4.5), true));
517
figure.Segments.
Add
(new LineSegment(new Point(7.5, 6.0), true));
518
figure.Segments.
Add
(new LineSegment(new Point(4.5, 3.0), true));
519
figure.Segments.
Add
(new LineSegment(new Point(1.5, 6.0), true));
548
figure.Segments.
Add
(new LineSegment(new Point(4.5, 8.0), true));
549
figure.Segments.
Add
(new LineSegment(new Point(9.0, 3.5), true));
550
figure.Segments.
Add
(new LineSegment(new Point(7.5, 2.0), true));
551
figure.Segments.
Add
(new LineSegment(new Point(4.5, 5.0), true));
552
figure.Segments.
Add
(new LineSegment(new Point(1.5, 2.0), true));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
473
figure.Segments.
Add
(new LineSegment(rect.TopRight, true));
474
figure.Segments.
Add
(new LineSegment(rect.BottomRight, true));
475
figure.Segments.
Add
(new LineSegment(rect.BottomLeft, true));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (14)
239
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true));
240
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true));
249
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true));
250
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true));
251
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true));
255
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true));
260
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true));
261
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true));
262
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true));
266
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true));
272
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true));
273
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true));
274
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true));
278
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true));
PresentationFramework.Royale (45)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (8)
112
tabFigure.Segments.
Add
(line);
116
tabFigure.Segments.
Add
(arc);
120
tabFigure.Segments.
Add
(line);
124
tabFigure.Segments.
Add
(arc);
248
arrowFigure.Segments.
Add
(line);
252
arrowFigure.Segments.
Add
(line);
260
arrowFigure.Segments.
Add
(line);
264
arrowFigure.Segments.
Add
(line);
Microsoft\Windows\Themes\ScrollChrome.cs (20)
409
figure.Segments.
Add
(new LineSegment(new Point(0.0, 4.5), true));
410
figure.Segments.
Add
(new LineSegment(new Point(4.5, 9.0), true));
411
figure.Segments.
Add
(new LineSegment(new Point(6.0, 7.5), true));
412
figure.Segments.
Add
(new LineSegment(new Point(3.0, 4.5), true));
413
figure.Segments.
Add
(new LineSegment(new Point(6.0, 1.5), true));
442
figure.Segments.
Add
(new LineSegment(new Point(8.0, 4.5), true));
443
figure.Segments.
Add
(new LineSegment(new Point(3.5, 9.0), true));
444
figure.Segments.
Add
(new LineSegment(new Point(2.0, 7.5), true));
445
figure.Segments.
Add
(new LineSegment(new Point(5.0, 4.5), true));
446
figure.Segments.
Add
(new LineSegment(new Point(2.0, 1.5), true));
475
figure.Segments.
Add
(new LineSegment(new Point(4.5, 0.0), true));
476
figure.Segments.
Add
(new LineSegment(new Point(9.0, 4.5), true));
477
figure.Segments.
Add
(new LineSegment(new Point(7.5, 6.0), true));
478
figure.Segments.
Add
(new LineSegment(new Point(4.5, 3.0), true));
479
figure.Segments.
Add
(new LineSegment(new Point(1.5, 6.0), true));
508
figure.Segments.
Add
(new LineSegment(new Point(4.5, 8.0), true));
509
figure.Segments.
Add
(new LineSegment(new Point(9.0, 3.5), true));
510
figure.Segments.
Add
(new LineSegment(new Point(7.5, 2.0), true));
511
figure.Segments.
Add
(new LineSegment(new Point(4.5, 5.0), true));
512
figure.Segments.
Add
(new LineSegment(new Point(1.5, 2.0), true));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
473
figure.Segments.
Add
(new LineSegment(rect.TopRight, true));
474
figure.Segments.
Add
(new LineSegment(rect.BottomRight, true));
475
figure.Segments.
Add
(new LineSegment(rect.BottomLeft, true));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (14)
239
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true));
240
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true));
249
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true));
250
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true));
251
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true));
255
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true));
260
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true));
261
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true));
262
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true));
266
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true));
272
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true));
273
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true));
274
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true));
278
figure.Segments.
Add
(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true));
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (5)
26
retVal.
Add
(new LineSegment(pointCollection[0], true));
44
retVal.
Add
(new LineSegment(turningPoint1, true));
45
retVal.
Add
(new ArcSegment(turningPoint2, new Size(RoundRadius, RoundRadius), 0, false, crossProductZ > 0 ? SweepDirection.Clockwise : SweepDirection.Counterclockwise, true));
50
retVal.
Add
(new LineSegment(pointCollection[i], true));
53
retVal.
Add
(new LineSegment(pointCollection[pointCollection.Count - 1], true));