Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns>Returns a breadcrumlike path for the document like: /ancestorname/ancestorname</returns>
        public string GetTextPath()
        {
            string tempPath = "";

            string[] splitPath = Path.Split(".".ToCharArray());
            for (int i = 1; i < Level; i++)
            {
                tempPath += new Document(int.Parse(splitPath[i])).Text + "/";
            }
            if (tempPath.Length > 0)
            {
                tempPath = tempPath.Substring(0, tempPath.Length - 1);
            }
            return(tempPath);
        }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns>Returns a breadcrumlike path for the document like: /ancestorname/ancestorname</returns>
 public string GetTextPath()
 {
     string tempPath = "";
     string[] splitPath = Path.Split(".".ToCharArray());
     for (int i = 1; i < Level; i++)
     {
         tempPath += new Document(int.Parse(splitPath[i])).Text + "/";
     }
     if (tempPath.Length > 0)
         tempPath = tempPath.Substring(0, tempPath.Length - 1);
     return tempPath;
 }