Пример #1
0
		void AddElementFoldToStackIfNotEmptyElement()
		{
			if (!reader.IsEmptyElement) {
				XmlElementFold fold = new XmlElementFold();
				fold.ReadStart(reader);
				elementFoldStack.Push(fold);
			}
		}
Пример #2
0
 FoldingRegion CreateFoldingRegion(XmlElementFold fold)
 {
     if (options.ShowAttributesWhenFolded)
     {
         return(fold.CreateFoldingRegionWithAttributes());
     }
     return(fold.CreateFoldingRegion());
 }
Пример #3
0
 void AddElementFoldToStackIfNotEmptyElement()
 {
     if (!reader.IsEmptyElement)
     {
         XmlElementFold fold = new XmlElementFold();
         fold.ReadStart(reader);
         elementFoldStack.Push(fold);
     }
 }
Пример #4
0
        void CreateElementFoldingRegionIfNotSingleLine()
        {
            XmlElementFold fold = elementFoldStack.Pop();

            fold.ReadEnd(reader);
            if (!fold.IsSingleLine)
            {
                FoldingRegion foldingRegion = CreateFoldingRegion(fold);
                folds.Add(foldingRegion);
            }
        }
Пример #5
0
		FoldingRegion CreateFoldingRegion(XmlElementFold fold)
		{
			if (options.ShowAttributesWhenFolded) {
				return fold.CreateFoldingRegionWithAttributes();
			}
			return fold.CreateFoldingRegion();
		}