当前位置: 首页>>代码示例>>C#>>正文


C# FoldingManager.UpdateFoldings方法代码示例

本文整理汇总了C#中ICSharpCode.AvalonEdit.Folding.FoldingManager.UpdateFoldings方法的典型用法代码示例。如果您正苦于以下问题:C# FoldingManager.UpdateFoldings方法的具体用法?C# FoldingManager.UpdateFoldings怎么用?C# FoldingManager.UpdateFoldings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICSharpCode.AvalonEdit.Folding.FoldingManager的用法示例。


在下文中一共展示了FoldingManager.UpdateFoldings方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateFoldings

        public void UpdateFoldings(FoldingManager manager, ITextSource document)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            int firstErrorOffset;
            IEnumerable<NewFolding> newFoldings = CreateNewFoldings(document, out firstErrorOffset);
            manager.UpdateFoldings(newFoldings, firstErrorOffset);
        }
开发者ID:Xamarui,项目名称:elasticops,代码行数:9,代码来源:BraceFoldingStrategy.cs

示例2: UpdateFoldings

        public void UpdateFoldings(FoldingManager foldingManager, TextDocument textDocument)
        {
            // Clear foldings if the list isn't empty.
            if (this.foldings.Foldings.Count > 0)
            {
                this.foldings.Foldings.Clear();
            }

            CreateNewFoldings(textDocument);
            foldingManager.UpdateFoldings(this.foldings.Foldings, this.foldings.FirstErrorOffset);
        }
开发者ID:123marvin123,项目名称:PawnPlus,代码行数:11,代码来源:PawnFoldingStrategy.cs

示例3: UpdateFoldings

 /// <summary>
 /// Create <see cref="NewFolding"/>s for the specified document and updates the folding manager with them.
 /// </summary>
 public void UpdateFoldings(FoldingManager manager, TextDocument document)
 {
   int firstErrorOffset;
   IEnumerable<NewFolding> foldings = _strategy.CreateNewFoldings(document, out firstErrorOffset);
   var errors = foldings.Where(f => f.StartOffset < 0 || f.EndOffset > document.TextLength).ToArray();
   manager.UpdateFoldings(foldings, firstErrorOffset);
 }
开发者ID:cornelius90,项目名称:InnovatorAdmin,代码行数:10,代码来源:XmlEditorHelper.cs

示例4: UpdateFoldings

 /// <summary>
 /// Create <see cref="NewFolding"/>s for the specified document and updates the folding manager with them.
 /// </summary>
 public void UpdateFoldings(FoldingManager manager, TextDocument document)
 {
     int firstErrorOffset;
     var foldings = CreateNewFoldings(document, out firstErrorOffset);
     manager.UpdateFoldings(foldings, firstErrorOffset);
 }
开发者ID:Konctantin,项目名称:Yanitta,代码行数:9,代码来源:LuaFoldingStrategy.cs

示例5: UpdateFoldings

		public void UpdateFoldings(FoldingManager manager, TextDocument document)
		{
			int firstErrorOffset;
			IEnumerable<NewFolding> newFoldings = CreateNewFoldings(document, out firstErrorOffset);
			manager.UpdateFoldings(newFoldings, firstErrorOffset);
		}
开发者ID:bbqchickenrobot,项目名称:AvalonEdit,代码行数:6,代码来源:BraceFoldingStrategy.cs

示例6: UpdateFoldings

 public void UpdateFoldings(FoldingManager manager, TextDocument document) {
     manager.UpdateFoldings(CreateNewFoldings(document), 0);
 }
开发者ID:gro-ove,项目名称:actools,代码行数:3,代码来源:IniFoldingStrategy.cs

示例7: UpdateFoldings

 public void UpdateFoldings(FoldingManager manager, TextDocument document)
 {
     var newFoldings = CreateNewFoldings(document).OrderBy(x => x.StartOffset);
     int firstErrorOffset = -1;
     manager.UpdateFoldings(newFoldings, firstErrorOffset);
 }
开发者ID:ousttrue,项目名称:EditorSample,代码行数:6,代码来源:BraceFoldingStrategy.cs

示例8: UpdateFoldings

 public void UpdateFoldings(FoldingManager manager, ICSharpCode.AvalonEdit.Document.TextDocument document)
 {
     int firstErrorOffset;
     IEnumerable<NewFolding> newFoldings = CreateNewFoldings(document, out firstErrorOffset);
     manager.UpdateFoldings(newFoldings, firstErrorOffset);
 }
开发者ID:ZixiangBoy,项目名称:CIIP,代码行数:6,代码来源:BraceFoldingStrategy.cs


注:本文中的ICSharpCode.AvalonEdit.Folding.FoldingManager.UpdateFoldings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。