ZedGraph LogoZedGraph Class Library Documentation
FontSpec Class
NamespacesZedGraphFontSpec
The FontSpec class is a generic font class that maintains the font family, attributes, colors, border and fill modes, font size, and angle information. This class can render text with a variety of alignment options using the AlignH and AlignV parameters in the Draw(Graphics, PaneBase, String, Single, Single, AlignH, AlignV, Single) method.
Declaration Syntax
C#Visual BasicVisual C++
<SerializableAttribute> _
Public Class FontSpec _
	Implements ICloneable, ISerializable
[SerializableAttribute]
public ref class FontSpec : ICloneable, 
	ISerializable
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
FontSpecFontSpecNew()()
Construct a FontSpec object with default properties.

FontSpecFontSpecNew(String, Single, Color, Boolean, Boolean, Boolean)
Construct a FontSpec object with the given properties. All other properties are defaulted according to the values specified in the FontSpec..::Default default class.

FontSpecFontSpecNew(String, Single, Color, Boolean, Boolean, Boolean, Color, Brush, FillType)
Construct a FontSpec object with the given properties. All other properties are defaulted according to the values specified in the FontSpec..::Default default class.

FontSpecFontSpecNew(FontSpec)
The Copy Constructor

Angle
The angle at which this FontSpec object is drawn.

Border
Gets or sets the Border class used to draw the border border around this text.

BoundingBox(Graphics, String, Single)
Get a SizeF struct representing the width and height of the bounding box for the specified text string, based on the scaled font size.

BoundingBox(Graphics, String, Single, SizeF)
Get a SizeF struct representing the width and height of the bounding box for the specified text string, based on the scaled font size.

BoundingBoxTenPower(Graphics, String, Single)
Get a SizeF struct representing the width and height of the bounding box for the specified text string, based on the scaled font size.

Clone()()
Typesafe, deep-copy clone method.

Draw(Graphics, PaneBase, String, Single, Single, AlignH, AlignV, Single)
Render the specified text to the specifed Graphics device. The text, border, and fill options will be rendered as required.

Draw(Graphics, PaneBase, String, Single, Single, AlignH, AlignV, Single, SizeF)
Render the specified text to the specifed Graphics device. The text, border, and fill options will be rendered as required.

DrawTenPower(Graphics, GraphPane, String, Single, Single, AlignH, AlignV, Single)
Render the specified text to the specifed Graphics device. The text, border, and fill options will be rendered as required. This special case method will show the specified text as a power of 10, using the SuperSize and SuperShift.

DropShadowAngle
Gets or sets the offset angle of the drop shadow for this FontSpec.

DropShadowColor
Gets or sets the color of the drop shadow for this FontSpec.

DropShadowOffset
Gets or sets the offset distance of the drop shadow for this FontSpec.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Family
The font family name for this FontSpec.

Fill
Gets or sets the Fill data for this FontSpec, which controls how the background behind the text is filled.

Finalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FontColor
The color of the font characters for this FontSpec. Note that the border and background colors are set using the Color and Color properties, respectively.

GetBox(Graphics, String, Single, Single, AlignH, AlignV, Single, SizeF)
Returns a polygon that defines the bounding box of the text, taking into account alignment and rotation parameters.

GetFont(Single)
Get the Font class for the current scaled font.

GetHashCode()()
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetHeight(Single)
Get the height of the scaled font

GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object

GetType()()
Gets the Type of the current instance.
(Inherited from Object.)
GetWidth(Graphics, Single)
Get the average character width of the scaled font. The average width is based on the character 'x'

GetWidth(Graphics, String, Single)
Get the total width of the specified text string

IsAntiAlias
Gets or sets a value that determines if the FontSpec will be drawn using anti-aliasing logic within GDI+.

IsBold
Determines whether this FontSpec is drawn with bold typeface.

IsDropShadow
Gets or sets a value that determines if the FontSpec will be displayed with a drop shadow.

IsItalic
Determines whether this FontSpec is drawn with italic typeface.

IsUnderline
Determines whether this FontSpec is drawn with underlined typeface.

MeasureString(Graphics, String, Single)
Get a SizeF struct representing the width and height of the specified text string, based on the scaled font size

MeasureString(Graphics, String, Single, SizeF)
Get a SizeF struct representing the width and height of the specified text string, based on the scaled font size, and using the specified SizeF as an outer limit.

MemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
PointInBox(PointF, Graphics, String, Single, Single, AlignH, AlignV, Single)
Determines if the specified screen point lies within the bounding box of the text, taking into account alignment and rotation parameters.

PointInBox(PointF, Graphics, String, Single, Single, AlignH, AlignV, Single, SizeF)
Determines if the specified screen point lies within the bounding box of the text, taking into account alignment and rotation parameters.

static memberschema
Current schema value that defines the version of the serialized file

Size
The size of the font for this FontSpec object.

StringAlignment
Determines the alignment with which this FontSpec object is drawn. This alignment really only affects multi-line strings.

ICloneable..::Clone()()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()()

ToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
FontSpec

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621