2 writes to Offset
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\SnapLine.cs (2)
64
Offset
= offset;
111
Offset
+= adjustment;
15 references to Offset
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (7)
295
int delta = targetSnapLine.
Offset
- snapLine.
Offset
;
763
if (IsWithinValidRange(snapLines[snapLineIndex].
Offset
, min, max))
944
line = new Line(snapLine.
Offset
, Math.Min(dragBounds.Top + (_snapPointY != INVALID_VALUE ? _snapPointY : 0), bounds.Top),
945
snapLine.
Offset
, Math.Max(dragBounds.Bottom + (_snapPointY != INVALID_VALUE ? _snapPointY : 0), bounds.Bottom))
954
line = new Line(Math.Min(dragBounds.Left + (_snapPointX != INVALID_VALUE ? _snapPointX : 0), bounds.Left), snapLine.
Offset
,
955
Math.Max(dragBounds.Right + (_snapPointX != INVALID_VALUE ? _snapPointX : 0), bounds.Right), snapLine.
Offset
)
System\Windows\Forms\Design\Behavior\SnapLine.cs (1)
181
return $"SnapLine: {{type = {SnapLineType}, offset = {
Offset
}, priority = {Priority}, filter = {Filter ?? "<null>"}}}";
System.Windows.Forms.Design.Tests (7)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (5)
21
Assert.Equal(DefaultOffset, snapLine.
Offset
);
32
Assert.Equal(DefaultOffset, snapLine.
Offset
);
43
Assert.Equal(DefaultOffset, snapLine.
Offset
);
54
Assert.Equal(DefaultOffset, snapLine.
Offset
);
116
Assert.Equal(expected, snapLine.
Offset
);
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
63
baselineSnapLine.
Offset
.Should().Be(expectedBaseline);
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
61
baselineSnapLine.Should().BeOfType<SnapLine>().Which.
Offset
.Should().Be(expectedBaseline);