Skip to content

GeoFont

Namespace: ThinkGeo.Core

This class represents a font that is used to label features on a GeoCanvas.

public class GeoFont

Inheritance ObjectGeoFont

Remarks:

None

Properties

IsBold

This property gets the bold property of the font.

public bool IsBold { get; set; }

Property Value

Boolean
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

Boolean
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

Boolean
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

Boolean
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

Single
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

public long Id { get; }

Property Value

Int64

Unit

public DrawingGraphicsUnit Unit { get; set; }

Property Value

DrawingGraphicsUnit

Constructors

GeoFont()

This constructor creates a GeoFont to be used for labeling features on a GeoCanvas.

public GeoFont()

Remarks:

None

GeoFont(String, Single)

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 Single
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, Single, 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 Single
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, Single, DrawingFontStyles, DrawingGraphicsUnit)

public GeoFont(string fontName, float size, DrawingFontStyles style, DrawingGraphicsUnit unit)

Parameters

fontName String

size Single

style DrawingFontStyles

unit DrawingGraphicsUnit

Methods

GetHashCode()

public int GetHashCode()

Returns

Int32

GetGlyphContent(Int32)

public static string GetGlyphContent(int glyphIndex)

Parameters

glyphIndex Int32

Returns

String

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean