How to Add multilpe values to System.drawing.point

Hello Community,
I want to add (0,0),(10,0)(10,10)(0,10) to the list of System.drawing.point and check if (5,5) is inside it.

I tried creating the list of System.drawing.point, but wasnt able to.

I want to check i the given point is within the polygon

Input
PolygonValue - Getting it from excel in this format -(0,0),(10,0)(10,10)(0,10)
myPoint - value to be searched - (5,5)

Output
IsInside - Can return true or false

Can anyone help me with it?

when we can assume Rectangles: (0,0),(10,0)(10,10)(0,10)
Then we can do:
grafik

the problem is its not always the 4 points will be given, sometimes it can be 6 points (hexcagon) or 5(pentagon), the number of sides provided will vary

I have the logic for it… but i am unable to create a list of system.drawing.points and add values to the list

Create a variable as IEnumerable(of system.drawing.points) and initialize it as List(of system.drawing.points) then you can add to it with an Assign…

Assign yourListVar = yourListVar.concat({yourDrawingPointVar})

Hello, i tried, but i am unable to assign, could you please send me the xaml or screenshot for the same?

image

Result:

image