Skip to content

Commit 63339a8

Browse files
committed
Added range parameter example.
1 parent 6e0f5cf commit 63339a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/guides-basic/dotnet-native-aot-support.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,22 @@ public static string NativeOptionalDouble(double d = 1.23)
297297
| A1 | =NativeOptionalDouble(2.3) | Native Optional VAL: 2.3
298298
| A2 | =NativeOptionalDouble() | Native Optional VAL: 1.23
299299

300+
## Range parameter
301+
302+
```csharp
303+
[ExcelFunction]
304+
public static string NativeRangeAddress(IRange r)
305+
{
306+
return "Native Address: " + r.Get<string>("Address");
307+
}
308+
```
309+
310+
| Cell | Formula | Result
311+
| ----- | ------------------------------- | ------
312+
| A1 | =NativeRangeAddress(B2) | Native Address: $B$2
313+
| A2 | =NativeRangeAddress(B2:C4) | Native Address: $B$2:$C$4
314+
| A3 | =NativeRangeAddress((B2,D5:E6)) | Native Address: $B$2,$D$5:$E$6
315+
300316
# Not supported functionality in native add-ins
301317

302318
Loading images for ribbon controls.

0 commit comments

Comments
 (0)