C# Class ColorColumn.ColorColumn

Adornment class that draws a square box in the top right hand corner of the viewport
Datei anzeigen Open project: fpicalausa/Color-Column

Public Methods

Method Description
ColorColumn ( IWpfTextView textView, IEditorFormatMap formatMap, OptionsPage settings ) : System

Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer

Private Methods

Method Description
_formatMap_FormatMappingChanged ( object sender, FormatItemsEventArgs e ) : void
caret_PositionChanged ( object sender, CaretPositionChangedEventArgs e ) : void
computeLines ( ) : void
getBrush ( string name, System.Windows.Media.Brush defaultValue ) : System.Windows.Media.Brush
getColumnLeft ( int viewColumn ) : double
getCursorColumn ( ) : int
getFirstColumn ( ) : int
getLastColumn ( ) : int
paintColumns ( bool force = true ) : void
regenerateColumns ( ) : void
renderColumns ( System.Windows.Media.GeometryGroup geometry, List columns, double top, double bottom, int lineFirstColumn, int firstVisibleColumn, int lastVisibleColumn ) : void
renderColumns ( List columns, System.Windows.Media.Brush brush, Image image ) : void
renderColumnsForLines ( System.Windows.Media.GeometryGroup geometry, List columns, ITextViewLineCollection lines ) : void
resetDrawing ( ) : void
settings_PropertyChanged ( object sender, System e ) : void
updateAdornments ( bool forced = false ) : void
updateBrushes ( ) : void
updateSettings ( ) : void
view_LayoutChanged ( object sender, TextViewLayoutChangedEventArgs e ) : void

Method Details

ColorColumn() public method

Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer
public ColorColumn ( IWpfTextView textView, IEditorFormatMap formatMap, OptionsPage settings ) : System
textView IWpfTextView
formatMap IEditorFormatMap
settings OptionsPage
return System