C# Class ICSharpCode.AvalonEdit.Rendering.BackgroundGeometryBuilder

Helper for creating a PathGeometry.
Exibir arquivo Open project: kjk/kjkpub Class Usage Examples

Public Methods

Method Description
AddRectangle ( double left, double top, double right, double bottom ) : void

Adds a rectangle to the geometry.

AddSegment ( TextView textView, ISegment segment ) : void

Adds the specified segment to the geometry.

BackgroundGeometryBuilder ( ) : System

Creates a new BackgroundGeometryBuilder instance.

CloseFigure ( ) : void

Closes the current figure.

CreateGeometry ( ) : Geometry

Creates the geometry. Returns null when the geometry is empty!

GetRectsForSegment ( TextView textView, ISegment segment ) : IEnumerable

Calculates the list of rectangle where the segment in shown. This returns one rectangle for each line inside the segment.

Private Methods

Method Description
GetRectsForSegmentImpl ( TextView textView, ISegment segment ) : IEnumerable
MakeArc ( double x, double y, SweepDirection dir ) : ArcSegment
MakeLineSegment ( double x, double y ) : LineSegment

Method Details

AddRectangle() public method

Adds a rectangle to the geometry.
public AddRectangle ( double left, double top, double right, double bottom ) : void
left double
top double
right double
bottom double
return void

AddSegment() public method

Adds the specified segment to the geometry.
public AddSegment ( TextView textView, ISegment segment ) : void
textView TextView
segment ISegment
return void

BackgroundGeometryBuilder() public method

Creates a new BackgroundGeometryBuilder instance.
public BackgroundGeometryBuilder ( ) : System
return System

CloseFigure() public method

Closes the current figure.
public CloseFigure ( ) : void
return void

CreateGeometry() public method

Creates the geometry. Returns null when the geometry is empty!
public CreateGeometry ( ) : Geometry
return Geometry

GetRectsForSegment() public static method

Calculates the list of rectangle where the segment in shown. This returns one rectangle for each line inside the segment.
public static GetRectsForSegment ( TextView textView, ISegment segment ) : IEnumerable
textView TextView
segment ISegment
return IEnumerable