C# Класс ICSharpCode.AvalonEdit.Folding.FoldingMargin

A margin that shows markers for foldings and allows to expand/collapse the foldings.
Наследование: ICSharpCode.AvalonEdit.Editing.AbstractMargin
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ArrangeOverride() защищенный Метод

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Результат System.Windows.Size

GetVisualChild() защищенный Метод

protected GetVisualChild ( int index ) : Visual
index int
Результат Visual

MeasureOverride() защищенный Метод

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
Результат System.Windows.Size

OnRender() защищенный Метод

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
Результат void

OnTextViewChanged() защищенный Метод

protected OnTextViewChanged ( TextView oldTextView, TextView newTextView ) : void
oldTextView TextView
newTextView TextView
Результат void