C# Class vdextensions.CoverageMargin

A class detailing the margin's visual definition including both size and content.
Inheritance: System.Windows.Controls.Canvas, IWpfTextViewMargin
Mostrar archivo Open project: rainers/visuald Class Usage Examples

Public Methods

Method Description
ConvertFromWin32Color ( uint color ) : Color
CoverageMargin ( IWpfTextView textView, IEditorFormatMap formatMap ) : System

Creates a CoverageMargin for a given IWpfTextView.

Dispose ( ) : void
GetTextViewMargin ( string marginName ) : ITextViewMargin

Private Methods

Method Description
DrawLineNumbers ( ) : void
GetColors ( ) : void
GetCoverage ( string fname, int line, int data, int cnt, float &covPercent ) : bool
GetCoverageData ( string fname, int line, int data, int cnt, float &covPercent ) : bool
GetMarginWidth ( System.Windows.Media.Typeface fontTypeFace, double fontSize ) : double
OnFormatMappingChanged ( ) : void
OnLayoutChanged ( object sender, TextViewLayoutChangedEventArgs e ) : void
ThrowIfDisposed ( ) : void
toBrush ( object obj ) : SolidColorBrush

Method Details

ConvertFromWin32Color() public static method

public static ConvertFromWin32Color ( uint color ) : Color
color uint
return Color

CoverageMargin() public method

Creates a CoverageMargin for a given IWpfTextView.
public CoverageMargin ( IWpfTextView textView, IEditorFormatMap formatMap ) : System
textView IWpfTextView The to attach the margin to.
formatMap IEditorFormatMap
return System

Dispose() public method

public Dispose ( ) : void
return void

GetTextViewMargin() public method

public GetTextViewMargin ( string marginName ) : ITextViewMargin
marginName string
return ITextViewMargin