C# Class PurplePen.BasicTextCourseObj

Inheritance: TextCourseObj
ファイルを表示 Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
BasicTextCourseObj ( Id specialId, string text, RectangleF rectBounding, string fontName, FontStyle fontStyle, SpecialColor color ) : System
GetHandleCursor ( PointF handlePoint ) : Cursor
GetHandles ( ) : System.Drawing.PointF[]
GetHighlightBounds ( ) : RectangleF
Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
MoveHandle ( PointF oldHandle, PointF newHandle ) : void
Offset ( float dx, float dy ) : void
ToString ( ) : string

Private Methods

Method Description
CalculateEmHeight ( string text, string fontName, FontStyle fontStyle, SizeF desiredSize ) : float

Method Details

BasicTextCourseObj() public method

public BasicTextCourseObj ( Id specialId, string text, RectangleF rectBounding, string fontName, FontStyle fontStyle, SpecialColor color ) : System
specialId Id
text string
rectBounding System.Drawing.RectangleF
fontName string
fontStyle FontStyle
color SpecialColor
return System

GetHandleCursor() public method

public GetHandleCursor ( PointF handlePoint ) : Cursor
handlePoint System.Drawing.PointF
return System.Windows.Forms.Cursor

GetHandles() public method

public GetHandles ( ) : System.Drawing.PointF[]
return System.Drawing.PointF[]

GetHighlightBounds() public method

public GetHighlightBounds ( ) : RectangleF
return System.Drawing.RectangleF

Highlight() public method

public Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
brush System.Drawing.Brush
erasing bool
return void

MoveHandle() public method

public MoveHandle ( PointF oldHandle, PointF newHandle ) : void
oldHandle System.Drawing.PointF
newHandle System.Drawing.PointF
return void

Offset() public method

public Offset ( float dx, float dy ) : void
dx float
dy float
return void

ToString() public method

public ToString ( ) : string
return string