New to Telerik UI for WinFormsStart a free 30-day trial

Class FoldingManager.

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.Folding

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class FoldingManager

Inheritance: objectFoldingManager

Properties

Gets the editor.

C#
public RadSyntaxEditorElement Editor { get; }
Property Value:

The editor.

Gets the folding regions.

C#
public IEnumerable<FoldingRegion> FoldingRegions { get; }
Property Value:

The folding regions.

Gets a value indicating whether this instance is update in progress.

C#
public bool IsUpdateInProgress { get; }
Property Value:

true if this instance is update in progress; otherwise, false.

Methods

Begins the update.

C#
public void BeginUpdate()

Clears the foldings.

C#
public void ClearFoldings()

Creates the folding.

C#
public FoldingRegion CreateFolding(int start, int end, bool isFolded = false, string title = "...", object toolTipContent = null)
Parameters:startintendintisFoldedbooltitlestringtoolTipContentobjectReturns:

FoldingRegion

Ends the update.

C#
public void EndUpdate()
Exceptions:

InvalidOperationException

There is no active update to end.

Gets the index of the foldings containing.

C#
public IEnumerable<FoldingRegion> GetFoldingsContainingIndex(int index)
Parameters:indexint

The index.

Returns:

IEnumerable<FoldingRegion>

Gets the foldings containing line.

C#
public IEnumerable<FoldingRegion> GetFoldingsContainingLine(int lineNumber)
Parameters:lineNumberint

The line number.

Returns:

IEnumerable<FoldingRegion>

Gets the foldings intersecting span.

C#
public IEnumerable<FoldingRegion> GetFoldingsIntersectingSpan(Span span)
Parameters:spanSpan

The span.

Returns:

IEnumerable<FoldingRegion>

Removes the folding.

C#
public void RemoveFolding(FoldingRegion foldingRegion)
Parameters:foldingRegionFoldingRegion

The folding region.

Unfolds the index of all regions containing.

C#
public void UnfoldAllRegionsContaningIndex(int index)
Parameters:indexint

The index.