GetFirstDefined

FontType.GetFirstDefined method

Returns a first font type from specified set, which is not an “Undefined” value, or “Undefined” font type otherwise (when all items are “Undefined”)

public static FontType GetFirstDefined(params FontType[] fonts)
Parameter Type Description
fonts FontType[] One or more FontType values, NULL or empty collection is not allowed

Return Value

First FontType value from specified collection, that is not Undefined, or Undefined, if all items are Undefined

See Also