Class GeoFont
This class represents a font that is used to label features on a GeoCanvas.
public class GeoFont
- Inheritance
-
GeoFont
- Inherited Members
Remarks
None
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
fontNamestringThis parameter represents the name of the font to be used.
sizefloatThis parameter represents the size of the font to be used.
Remarks
None
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.
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
fontNamestringThis parameter represents the name of the font to be used.
sizefloatThis parameter represents the size of the font to be used.
styleDrawingFontStylesThis parameter represents the style of the font to be used.
Remarks
None
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.
GeoFont(string, float, DrawingFontStyles, DrawingGraphicsUnit)
public GeoFont(string fontName, float size, DrawingFontStyles style, DrawingGraphicsUnit unit)
Parameters
fontNamestringsizefloatstyleDrawingFontStylesunitDrawingGraphicsUnit
Properties
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.
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null or empty string as the FontName, we will throw an ArgumentNullException.
Id
public long Id { get; }
Property Value
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
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
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
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
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.
Remarks
None
Exceptions
- ArgumentOutOfRangeException
If you pass in a size value that is not greater than zero, it will throw a ArgumentOutOfRangeException.
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.
Remarks
None
Exceptions
- ArgumentOutOfRangeException
If you pass in a Style that is not defined in the enumeration, it will throw a ArgumentOutOfRangeException.
Unit
public DrawingGraphicsUnit Unit { get; set; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetGlyphContent(int)
public static string GetGlyphContent(int glyphIndex)
Parameters
glyphIndexint
Returns
GetHashCode()
public override int GetHashCode()