eVision .NET API
Loading...
Searching...
No Matches
eVision.EFont Class Reference

Font. More...

Inheritance diagram for eVision.EFont:
Collaboration diagram for eVision.EFont:

Public Member Functions

 EFont ()
 Constructs a EFont.
 EFont (string fontFamily, int pointSize, eVision.EFontStyle style)
 Constructs a EFont.
 EFont (string fontFamily, int pointSize)
 Constructs a EFont.
 EFont (eVision.EFont other)
 Constructs a EFont.
bool IsValid ()
 Whether the font is valid (Size != 0 and Family defined).
void Serialize (eVision.ESerializer serializer)
 Serializes the EFont.
void Load (string path)
 Loads the EFont. The given ESerializer must have been created for reading.
void Load (eVision.ESerializer serializer)
 Loads the EFont. The given ESerializer must have been created for reading.
void Save (string path)
 Saves the EFont. The given ESerializer must have been created for writing.
void Save (eVision.ESerializer serializer)
 Saves the EFont. The given ESerializer must have been created for writing.

Properties

string Family [get, set]
 Font family name.
int Size [get, set]
 Size of the font.
eVision.EFontStyle Style [get, set]
 Font style.

Detailed Description

Font.

License(s): None

Constructor & Destructor Documentation

◆ EFont() [1/4]

eVision.EFont.EFont ( )

Constructs a EFont.

◆ EFont() [2/4]

eVision.EFont.EFont ( string fontFamily,
int pointSize,
eVision.EFontStyle style )

Constructs a EFont.

Parameters
fontFamilyFont family
pointSizeFont size
styleFont style

◆ EFont() [3/4]

eVision.EFont.EFont ( string fontFamily,
int pointSize )

Constructs a EFont.

Parameters
fontFamilyFont family
pointSizeFont size

◆ EFont() [4/4]

eVision.EFont.EFont ( eVision.EFont other)

Constructs a EFont.

Parameters
otherThe other EFont that will be copied into this one.

Member Function Documentation

◆ IsValid()

bool eVision.EFont.IsValid ( )

Whether the font is valid (Size != 0 and Family defined).

◆ Load() [1/2]

void eVision.EFont.Load ( eVision.ESerializer serializer)

Loads the EFont. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

void eVision.EFont.Load ( string path)

Loads the EFont. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Save() [1/2]

void eVision.EFont.Save ( eVision.ESerializer serializer)

Saves the EFont. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

◆ Save() [2/2]

void eVision.EFont.Save ( string path)

Saves the EFont. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

◆ Serialize()

void eVision.EFont.Serialize ( eVision.ESerializer serializer)

Serializes the EFont.

Parameters
serializerSerializer
Deprecated

Use EFont.Save or EFont.Load instead.

Deprecated in version 24.10. Scheduled to be removed in version 27.6.

Property Documentation

◆ Family

string eVision.EFont.Family
getset

Font family name.

◆ Size

int eVision.EFont.Size
getset

Size of the font.

◆ Style

eVision.EFontStyle eVision.EFont.Style
getset

Font style.