C# 클래스 FastColoredTextBoxNS.Style

Style of chars
This is base class for all text and design renderers
상속: IDisposable
파일 보기 프로젝트 열기: samarjeet27/ynoteclassic 1 사용 예제들

공개 메소드들

메소드 설명
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