VixenModules.Preview.VixenPreview.Shapes.PreviewLine.Match C# (CSharp) Method

Match() public method

public Match ( VixenModules.Preview.VixenPreview.Shapes.PreviewBaseShape matchShape ) : void
matchShape VixenModules.Preview.VixenPreview.Shapes.PreviewBaseShape
return void
        public override void Match(PreviewBaseShape matchShape)
        {
            PreviewLine shape = (matchShape as PreviewLine);
            PixelSize = shape.PixelSize;
            _points[1].X = _points[0].X + (shape._points[1].X - shape._points[0].X);
            _points[1].Y = _points[0].Y + (shape._points[1].Y - shape._points[0].Y);
            Layout();
        }