C# Класс FastColoredTextBoxNS.Style

Style of chars
This is base class for all text and design renderers
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void
Draw ( Graphics gr, Point position, Range range ) : void

Renders given range of text

GetCSS ( ) : string

Returns CSS for export to HTML

GetRTF ( ) : RTFStyleDescriptor

Returns RTF descriptor for export to RTF

GetRoundedRectangle ( Rectangle rect, int d ) : GraphicsPath
GetSizeOfRange ( Range range ) : Size
OnVisualMarkerClick ( FastColoredTextBox tb, VisualMarkerEventArgs args ) : void

Occurs when user click on StyleVisualMarker joined to this style

Style ( ) : System

Constructor

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

Метод Описание
AddVisualMarker ( FastColoredTextBox tb, StyleVisualMarker marker ) : void

Shows VisualMarker Call this method in Draw method, when you need to show VisualMarker for your style

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

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

Shows VisualMarker Call this method in Draw method, when you need to show VisualMarker for your style
protected AddVisualMarker ( FastColoredTextBox tb, StyleVisualMarker marker ) : void
tb FastColoredTextBox
marker StyleVisualMarker
Результат void

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

public Dispose ( ) : void
Результат void

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

Renders given range of text
public abstract Draw ( Graphics gr, Point position, Range range ) : void
gr System.Drawing.Graphics Graphics object
position Point Position of the range in absolute control coordinates
range Range Rendering range of text
Результат void

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

Returns CSS for export to HTML
public GetCSS ( ) : string
Результат string

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

Returns RTF descriptor for export to RTF
public GetRTF ( ) : RTFStyleDescriptor
Результат RTFStyleDescriptor

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

public static GetRoundedRectangle ( Rectangle rect, int d ) : GraphicsPath
rect System.Drawing.Rectangle
d int
Результат System.Drawing.Drawing2D.GraphicsPath

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

public static GetSizeOfRange ( Range range ) : Size
range Range
Результат System.Drawing.Size

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

Occurs when user click on StyleVisualMarker joined to this style
public OnVisualMarkerClick ( FastColoredTextBox tb, VisualMarkerEventArgs args ) : void
tb FastColoredTextBox
args VisualMarkerEventArgs
Результат void

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

Constructor
public Style ( ) : System
Результат System