# SmithChart.ScreenPointToDiagramPoint method

Converts a position in control coordinates to the corresponding argument and value.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](../index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public SmithDiagramCoordinates ScreenPointToDiagramPoint(Point position)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| position | `Point` | The position within the control, in device-independent units. |

## Returns

| type | description |
| --- | --- |
| [`SmithDiagramCoordinates`](../SmithDiagramCoordinates.md) | The argument and value under the given position, together with a flag that tells whether the position falls inside the plot area. |

## See Also

* class [SmithDiagramCoordinates](../SmithDiagramCoordinates.md)
* class [SmithChart](../SmithChart.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
