GeoFont¶
Namespace: ThinkGeo.Core
This class represents a font that is used to label features on a GeoCanvas.
public class GeoFont
Remarks:
None
Properties¶
IsBold¶
This property gets the bold property of the font.
public bool IsBold { get; set; }
Property Value¶
bool
This property gets the bold property of the font.
Remarks:
None
IsStrikeout¶
This property gets the strikeout property of the font.
public bool IsStrikeout { get; set; }
Property Value¶
bool
This property gets the strikeout property of the font.
Remarks:
None
IsItalic¶
This property gets the italic property of the font.
public bool IsItalic { get; set; }
Property Value¶
bool
This property gets the italic property of the font.
Remarks:
None
IsUnderline¶
This property gets the underline property of the font.
public bool IsUnderline { get; set; }
Property Value¶
bool
This property gets the underline property of the font.
Remarks:
None
FontName¶
This property gets the font name property of the font.
public string FontName { get; set; }
Property Value¶
string
This property gets the font name property of the font.
Exceptions¶
ArgumentNullException
If you pass a null or empty string as the FontName, we will throw an ArgumentNullException.
Remarks:
None
Size¶
This property gets the font size property of the font.
public float Size { get; set; }
Property Value¶
float
This property gets the font size property of the font.
Exceptions¶
ArgumentOutOfRangeException
If you pass in a size value that is not greater than zero, it will throw a ArgumentOutOfRangeException.
Remarks:
None
Style¶
This property gets the font style property of the font.
public DrawingFontStyles Style { get; set; }
Property Value¶
DrawingFontStyles
This property gets the font style property of the font.
Exceptions¶
ArgumentOutOfRangeException
If you pass in a Style that is not defined in the enumeration, it will throw a ArgumentOutOfRangeException.
Remarks:
None
Id¶
Gets or sets the Id.
public long Id { get; }
Property Value¶
Unit¶
Gets or sets the Unit.
public DrawingGraphicsUnit Unit { get; set; }
Property Value¶
Constructors¶
GeoFont()¶
This constructor creates a GeoFont to be used for labeling features on a GeoCanvas.
public GeoFont()
Remarks:
None
GeoFont(string, float)¶
This constructor creates a GeoFont to be used for labeling features on a GeoCanvas.
public GeoFont(string fontName, float size)
Parameters¶
fontName string
This parameter represents the name of the font to be used.
size float
This parameter represents the size of the font to be used.
Exceptions¶
ArgumentNullException
If you pass a null or empty string as the fontName, we will throw an ArgumentNullException.
ArgumentOutOfRangeException
If you pass in a size value that is not greater than zero, it will throw a ArgumentOutOfRangeException.
Remarks:
None
GeoFont(string, float, DrawingFontStyles)¶
This constructor creates a GeoFont to be used for labeling features on a GeoCanvas.
public GeoFont(string fontName, float size, DrawingFontStyles style)
Parameters¶
fontName string
This parameter represents the name of the font to be used.
size float
This parameter represents the size of the font to be used.
style DrawingFontStyles
This parameter represents the style of the font to be used.
Exceptions¶
ArgumentNullException
If you pass a null or empty string as the fontName, we will throw an ArgumentNullException.
ArgumentOutOfRangeException
If you pass in a size value that is not greater than zero, it will throw a ArgumentOutOfRangeException.
ArgumentOutOfRangeException
If you pass in a style that is not defined in the enumeration, it will throw a ArgumentOutOfRangeException.
Remarks:
None
GeoFont(string, float, DrawingFontStyles, DrawingGraphicsUnit)¶
Initializes a new instance of the GeoFont class.
public GeoFont(string fontName, float size, DrawingFontStyles style, DrawingGraphicsUnit unit)
Parameters¶
fontName string
size float
style DrawingFontStyles
unit DrawingGraphicsUnit
Methods¶
GetHashCode()¶
Returns the hash code for the current instance.
public int GetHashCode()
Returns¶
int
The result of the operation.
GetGlyphContent(int)¶
Returns glyph content for .
public static string GetGlyphContent(int glyphIndex)
Parameters¶
glyphIndex int
The glyph index.
Returns¶
string
A string result.
Equals(object)¶
Determines whether the specified object is equal to the current instance.
public bool Equals(object obj)
Parameters¶
obj object
The obj.
Returns¶
bool
True if the condition is met; otherwise, false.