C# Class ICSharpCode.AvalonEdit.Folding.FoldingMargin

A margin that shows markers for foldings and allows to expand/collapse the foldings.
Inheritance: ICSharpCode.AvalonEdit.Editing.AbstractMargin
ファイルを表示 Open project: kjk/kjkpub Class Usage Examples

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size availableSize ) : Size
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
OnTextViewChanged ( TextView oldTextView, TextView newTextView ) : void

Private Methods

Method Description
CalculateFoldLinesForFoldingsActiveAtStart ( List allTextLines, System.Windows.Media.Pen colors, System.Windows.Media.Pen endMarker ) : void

Calculates fold lines for all folding sections that start in front of the current view and run into the current view.

CalculateFoldLinesForMarkers ( List allTextLines, System.Windows.Media.Pen colors, System.Windows.Media.Pen endMarker ) : void

Calculates fold lines for all folding sections that start inside the current view

DrawFoldLines ( System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Pen colors, System.Windows.Media.Pen endMarker ) : void

Draws the lines for the folding sections (vertical line with 'color', horizontal lines with 'endMarker') Each entry in the input arrays corresponds to one TextLine.

GetTextLineIndexFromOffset ( List textLines, int offset ) : int
GetVisualPos ( VisualLine vl, System.Windows.Media.TextFormatting.TextLine tl ) : double
MakeFrozenPen ( System.Windows.Media.Brush brush ) : System.Windows.Media.Pen
TextViewVisualLinesChanged ( object sender, EventArgs e ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

GetVisualChild() protected method

protected GetVisualChild ( int index ) : Visual
index int
return Visual

MeasureOverride() protected method

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
return System.Windows.Size

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

OnTextViewChanged() protected method

protected OnTextViewChanged ( TextView oldTextView, TextView newTextView ) : void
oldTextView TextView
newTextView TextView
return void