C# Class NeinTom.ChatLog.TextPart

Inheritance: ChatMessagePart
Datei anzeigen Open project: jvbsl/LiveCodingChat

Public Methods

Method Description
TextPart ( XmlElement element, ChatMessagePart parent = null, Font font = null ) : System
TextPart ( string text, ChatMessagePart parent = null, Font font = null ) : System

Protected Methods

Method Description
DrawInternal ( Graphics g, PointF position, SizeF size ) : void
MouseDownInternal ( PointF location, MouseEventArgs e ) : void
MouseMoveInternal ( PointF location, MouseEventArgs e ) : void
ParseInternal ( Graphics g ) : void
PreParse ( XmlElement element ) : void

Private Methods

Method Description
AddPatterns ( string text ) : bool
InitText ( ) : void
MeasureString ( Graphics g, string text, Font font ) : SizeF
TestPrefix ( int index, string text, int &lastMatched, int &matched ) : void

Method Details

DrawInternal() protected method

protected DrawInternal ( Graphics g, PointF position, SizeF size ) : void
g System.Drawing.Graphics
position System.Drawing.PointF
size System.Drawing.SizeF
return void

MouseDownInternal() protected method

protected MouseDownInternal ( PointF location, MouseEventArgs e ) : void
location System.Drawing.PointF
e MouseEventArgs
return void

MouseMoveInternal() protected method

protected MouseMoveInternal ( PointF location, MouseEventArgs e ) : void
location System.Drawing.PointF
e MouseEventArgs
return void

ParseInternal() protected method

protected ParseInternal ( Graphics g ) : void
g System.Drawing.Graphics
return void

PreParse() protected method

protected PreParse ( XmlElement element ) : void
element System.Xml.XmlElement
return void

TextPart() public method

public TextPart ( XmlElement element, ChatMessagePart parent = null, Font font = null ) : System
element System.Xml.XmlElement
parent ChatMessagePart
font System.Drawing.Font
return System

TextPart() public method

public TextPart ( string text, ChatMessagePart parent = null, Font font = null ) : System
text string
parent ChatMessagePart
font System.Drawing.Font
return System