C# Class SIL.FieldWorks.FwCoreDlgControls.FontInfoExtensions

UI extensions methods for FontInfo
Mostra file Open project: sillsdev/FieldWorks

Public Methods

Method Description
ToString ( this fontInfo, bool fForceMinimumDescription ) : string

Returns a that represents the current . This method returns a human-readable string that is culture-sensitive

UIFontName ( this fontInfo ) : string

Gets the name of the UI font.

Private Methods

Method Description
AppendFontColor ( SIL.FieldWorks.FDO.DomainServices.FontInfo fontInfo, StringBuilder text ) : void

Appends the font and background color information to the description

AppendFontOffset ( StringBuilder text, int value ) : void

Appends the font offset information to the description

AppendSuperSub ( StringBuilder text, FwSuperscriptVal value ) : void

Appends the superscript/subscript information to the description

AppendToString ( StringBuilder text, string value ) : void

Appends to string.

AppendUnderline ( SIL.FieldWorks.FDO.DomainServices.FontInfo fontInfo, StringBuilder text ) : void

Appends the underline information to the description.

Method Details

ToString() public static method

Returns a that represents the current . This method returns a human-readable string that is culture-sensitive
public static ToString ( this fontInfo, bool fForceMinimumDescription ) : string
fontInfo this
fForceMinimumDescription bool if set to true forces at least minimum /// description (i.e., font and size) to be returned.
return string

UIFontName() public static method

Gets the name of the UI font.
public static UIFontName ( this fontInfo ) : string
fontInfo this
return string