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