C# Class PurplePen.TextCourseObj

Inheritance: CourseObj
Show file Open project: petergolde/PurplePen

Public Properties

Property Type Description
fontColor SpecialColor
fontName string
fontStyle FontStyle
text string
topLeft System.Drawing.PointF

Protected Properties

Property Type Description
size System.Drawing.SizeF

Public Methods

Method Description
AddToMap ( Map map, SymColor symColor, SymDef>.Dictionary dict ) : void
DistanceFromPoint ( PointF pt ) : double
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetHighlightBounds ( ) : RectangleF
Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
Offset ( float dx, float dy ) : void
TextCourseObj ( Id controlId, Id courseControlId, Id specialId, string text, PointF topLeft, string fontName, FontStyle fontStyle, SpecialColor fontColor, float emHeight, float outlineWidth ) : System
ToString ( ) : string

Protected Methods

Method Description
AddToMap ( Map map, SymDef symdef ) : void
CreateSymDef ( Map map, SymColor symColor ) : SymDef
CreateSymDef ( Map map, SymColor symColor, SymColor whiteColor ) : SymDef
SymDefKey ( ) : object

Private Methods

Method Description
MeasureText ( ) : SizeF

Method Details

AddToMap() public method

public AddToMap ( Map map, SymColor symColor, SymDef>.Dictionary dict ) : void
map Map
symColor SymColor
dict SymDef>.Dictionary
return void

AddToMap() protected method

protected AddToMap ( Map map, SymDef symdef ) : void
map Map
symdef SymDef
return void

CreateSymDef() protected method

protected CreateSymDef ( Map map, SymColor symColor ) : SymDef
map Map
symColor SymColor
return SymDef

CreateSymDef() protected method

protected CreateSymDef ( Map map, SymColor symColor, SymColor whiteColor ) : SymDef
map Map
symColor SymColor
whiteColor SymColor
return SymDef

DistanceFromPoint() public method

public DistanceFromPoint ( PointF pt ) : double
pt System.Drawing.PointF
return double

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

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

Offset() public method

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

SymDefKey() protected method

protected SymDefKey ( ) : object
return object

TextCourseObj() public method

public TextCourseObj ( Id controlId, Id courseControlId, Id specialId, string text, PointF topLeft, string fontName, FontStyle fontStyle, SpecialColor fontColor, float emHeight, float outlineWidth ) : System
controlId Id
courseControlId Id
specialId Id
text string
topLeft System.Drawing.PointF
fontName string
fontStyle FontStyle
fontColor SpecialColor
emHeight float
outlineWidth float
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

fontColor public property

public SpecialColor,PurplePen fontColor
return SpecialColor

fontName public property

public string fontName
return string

fontStyle public property

public FontStyle fontStyle
return FontStyle

size protected property

protected SizeF,System.Drawing size
return System.Drawing.SizeF

text public property

public string text
return string

topLeft public property

public PointF,System.Drawing topLeft
return System.Drawing.PointF