C# Class FastColoredTextBoxNS.Style

Style of chars
This is base class for all text and design renderers
Inheritance: IDisposable
Afficher le fichier Open project: samarjeet27/ynoteclassic Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
AddVisualMarker ( FastColoredTextBox tb, StyleVisualMarker marker ) : void

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

Method Details

AddVisualMarker() protected méthode

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
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public abstract méthode

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
Résultat void

GetCSS() public méthode

Returns CSS for export to HTML
public GetCSS ( ) : string
Résultat string

GetRTF() public méthode

Returns RTF descriptor for export to RTF
public GetRTF ( ) : RTFStyleDescriptor
Résultat RTFStyleDescriptor

GetRoundedRectangle() public static méthode

public static GetRoundedRectangle ( Rectangle rect, int d ) : GraphicsPath
rect System.Drawing.Rectangle
d int
Résultat System.Drawing.Drawing2D.GraphicsPath

GetSizeOfRange() public static méthode

public static GetSizeOfRange ( Range range ) : Size
range Range
Résultat System.Drawing.Size

OnVisualMarkerClick() public méthode

Occurs when user click on StyleVisualMarker joined to this style
public OnVisualMarkerClick ( FastColoredTextBox tb, VisualMarkerEventArgs args ) : void
tb FastColoredTextBox
args VisualMarkerEventArgs
Résultat void

Style() public méthode

Constructor
public Style ( ) : System
Résultat System