Skip to content

Commit 369af68

Browse files
committed
Add sample of external xml and punctuated name
1 parent 7d98263 commit 369af68

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<IntelliSense xmlns="http://schemas.excel-dna.net/intellisense/1.0">
2+
<FunctionInfo>
3+
<Function Name="AdxThem" Description="A function described in XML"
4+
HelpTopic="MyFile.chm!100" >
5+
<Argument Name="tag" Description="Whatever you want to put in here" />
6+
<Argument Name="Addend" Description="Actually the second arg" />
7+
</Function>
8+
</FunctionInfo>
9+
</IntelliSense>

Source/ExcelDna.IntelliSense.Host/ExcelDna.IntelliSense.Host.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
<Content Include="ExcelDna.IntelliSense.Host-AddIn.dna">
5959
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6060
</Content>
61+
<Content Include="ExcelDna.IntelliSense.Host-AddIn.IntelliSense.xml">
62+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
63+
</Content>
6164
</ItemGroup>
6265
<ItemGroup>
6366
<None Include="ExcelDna.IntelliSense.Host-AddIn.xll.config">

Source/ExcelDna.IntelliSense.Host/MyFunctions.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static string jDummyFunc()
3232
return "Howzit !";
3333
}
3434

35-
[ExcelFunction]
35+
[ExcelFunction(Name ="a.test?d_.3")]
3636
public static object AnotherFunction( [Description("In and out")] object inout)
3737
{
3838
return inout;
@@ -44,6 +44,12 @@ public static object ANonDescriptFunction(object inout)
4444
return inout;
4545
}
4646

47+
[ExcelFunction(Name ="A.Descript.Function", Description = "Has a description")]
48+
public static object ADescriptFunction(object inout)
49+
{
50+
return inout;
51+
}
52+
4753
}
4854
}
4955
#endif

0 commit comments

Comments
 (0)