diff --git a/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points.slnx b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points.slnx new file mode 100644 index 00000000..c3923a64 --- /dev/null +++ b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points.slnx @@ -0,0 +1,3 @@ + + + diff --git a/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Inches To Points.csproj b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Inches To Points.csproj new file mode 100644 index 00000000..31ee28a7 --- /dev/null +++ b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Inches To Points.csproj @@ -0,0 +1,20 @@ + + + + Exe + net8.0 + Inches_To_Points + enable + enable + + + + + + + + Always + + + + diff --git a/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Output/.gitkeep b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Output/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Program.cs b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Program.cs new file mode 100644 index 00000000..e89e2671 --- /dev/null +++ b/FAQ/Inches To Points/.NET/Inches To Points/Inches To Points/Program.cs @@ -0,0 +1,18 @@ +using Syncfusion.XlsIO; + +class Program +{ + static void Main(string[] args) + { + using (ExcelEngine excelEngine = new ExcelEngine()) + { + IApplication application = excelEngine.Excel; + + // Converts inches to points + double inches = 4.5; + double points = application.InchesToPoints(inches); + + Console.WriteLine($"{inches} inches is equal to {points} points."); + } + } +} \ No newline at end of file