IFontFallBackRule.IndexOf method

Returns an index of the specified rule in the collection.

public int IndexOf(string fontName)
Parameter Type Description
fontName String Font’s name to find.

Return Value

Index of a font or -1 if font not found in list.


// Create a rule contains a list of fonts.
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman");

//Get index of Tahoma
int tahomaIndex = newRule.IndexOf("Tahoma");

See Also