ClassFoldingManager
Class FoldingManager.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Folding
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class FoldingManager
Inheritance: objectFoldingManager
Properties
Editor
Gets the editor.
Declaration
public RadSyntaxEditor Editor { get; }
Property Value
The editor.
FoldingRegions
Gets the folding regions.
Declaration
public IEnumerable<FoldingRegion> FoldingRegions { get; }
Property Value
The folding regions.
IsUpdateInProgress
Gets a value indicating whether this instance is update in progress.
Declaration
public bool IsUpdateInProgress { get; }
Property Value
true if this instance is update in progress; otherwise, false.
Methods
ClearFoldings()
Clears the foldings.
Declaration
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed.")]
public void ClearFoldings()
CreateFolding(int, int, bool, string, object)
Creates the folding.
EndUpdate()
Ends the update.
Declaration
public void EndUpdate()
Exceptions
There is no active update to end.
GetFoldingsContainingIndex(int)
Gets the index of the foldings containing.
Declaration
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed.")]
public IEnumerable<FoldingRegion> GetFoldingsContainingIndex(int index)
Parameters
index
The index.
Returns
GetFoldingsContainingLine(int)
Gets the foldings containing line.
Declaration
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed.")]
public IEnumerable<FoldingRegion> GetFoldingsContainingLine(int lineNumber)
Parameters
lineNumber
The line number.
Returns
GetFoldingsIntersectingSpan(Span)
Gets the foldings intersecting span.
Declaration
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed.")]
public IEnumerable<FoldingRegion> GetFoldingsIntersectingSpan(Span span)
Parameters
span
The span.
Returns
RemoveFolding(FoldingRegion)
Removes the folding.
Declaration
public void RemoveFolding(FoldingRegion foldingRegion)
Parameters
foldingRegion
The folding region.
UnfoldAllRegionsContaningIndex(int)
Unfolds the index of all regions containing.
Declaration
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Contaning")]
public void UnfoldAllRegionsContaningIndex(int index)
Parameters
index
The index.