NanoXLSX.Writer 3.0.0-rc.3
Loading...
Searching...
No Matches
DocumentPath.cs
1/*
2 * NanoXLSX is a small .NET library to generate and read XLSX (Microsoft Excel 2007 or newer) files in an easy and native way
3 * Copyright Raphael Stoeckli © 2025
4 * This library is licensed under the MIT License.
5 * You find a copy of the license in project folder or on: http://opensource.org/licenses/MIT
6 */
7
9{
14 internal class DocumentPath
15 {
19 public string Filename { get; set; }
23 public string Path { get; set; }
24
30 public DocumentPath(string filename, string path)
31 {
32 Filename = filename;
33 Path = path;
34 }
35
40 public string GetFullPath()
41 {
42 if (Path[Path.Length - 1] == System.IO.Path.AltDirectorySeparatorChar || Path[Path.Length - 1] == System.IO.Path.DirectorySeparatorChar)
43 {
44 return System.IO.Path.AltDirectorySeparatorChar + Path + Filename;
45 }
46 return System.IO.Path.AltDirectorySeparatorChar + Path + System.IO.Path.AltDirectorySeparatorChar + Filename;
47 }
48
49 }
50
51}