C# Класс ICSharpCode.AvalonEdit.Rendering.BackgroundGeometryBuilder

Helper for creating a PathGeometry.
Показать файл Открыть проект Примеры использования класса

Открытые методы

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

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

Метод Описание
GetRectsForSegmentImpl ( TextView textView, ISegment segment ) : IEnumerable
MakeArc ( double x, double y, SweepDirection dir ) : ArcSegment
MakeLineSegment ( double x, double y ) : LineSegment

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

AddRectangle() публичный Метод

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
Результат void

AddSegment() публичный Метод

Adds the specified segment to the geometry.
public AddSegment ( TextView textView, ISegment segment ) : void
textView TextView
segment ISegment
Результат void

BackgroundGeometryBuilder() публичный Метод

Creates a new BackgroundGeometryBuilder instance.
public BackgroundGeometryBuilder ( ) : System
Результат System

CloseFigure() публичный Метод

Closes the current figure.
public CloseFigure ( ) : void
Результат void

CreateGeometry() публичный Метод

Creates the geometry. Returns null when the geometry is empty!
public CreateGeometry ( ) : Geometry
Результат Geometry

GetRectsForSegment() публичный статический Метод

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
Результат IEnumerable